waiting on the wrong array

This commit is contained in:
Sam 2017-04-21 17:29:38 -04:00
parent b077335a30
commit b74c61777a
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class StatsSocket
line = ""
while Time.now - start < 10
if IO.select(nil, [socket], nil, 10)
if IO.select([socket], nil, nil, 10)
begin
line << socket.read_nonblock(1000)
rescue IO::WaitReadable