lib/rumai/ixp/transport.rb in rumai-3.2.3 vs lib/rumai/ixp/transport.rb in rumai-3.2.4
- old
+ new
@@ -128,10 +128,10 @@
next_reply_available =
@recv_buf.empty? || begin
# check (in a non-blocking fashion) if
# the stream has reply for us right now
- @stream.ungetc @stream.read_nonblock(1)
+ @stream.ungetc @stream.read_nonblock(1).unpack('C').first
true
rescue Errno::EAGAIN
# the stream is empty
end