Inverted comparison logic
Added verfication to ws_connbuf_discard()