Skip to content

Commit

Permalink
fix comparison and expand comment
Browse files Browse the repository at this point in the history
  • Loading branch information
psharpNumerex committed Nov 11, 2015
1 parent 7a6923e commit 88451a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection/netio.rb
Expand Up @@ -31,8 +31,8 @@ def _receive(read_socket, connread = false)
end
#
return nil if line.nil?
#An extra \n at the beginning of the
line = '' if line = "\n"
#An extra \n at the beginning of the frame, possibly not caught by is_ready?
line = '' if line == "\n"
# p [ "wiredatain_01", line ]
line = _normalize_line_end(line) if @protocol >= Stomp::SPL_12
# If the reading hangs for more than X seconds, abort the parsing process.
Expand Down

0 comments on commit 88451a7

Please sign in to comment.