lib/sip/capture/hep3.rb in sip-capture-0.1.0 vs lib/sip/capture/hep3.rb in sip-capture-0.1.1
- old
+ new
@@ -1,7 +1,6 @@
require 'socket'
-require 'json'
module Sip
module Capture
class Hep3
@@ -31,10 +30,10 @@
while @in_loop do
begin
data = @socket.recvfrom_nonblock(65535) #=> ["aaa", ["AF_INET", 33302, "localhost.localdomain", "127.0.0.1"]]
process_data data[0], &block
rescue IO::WaitReadable
- IO.select([s1], [], [], 10)
+ IO.select([@socket], [], [], 10)
retry
end
end
end