mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
waiting on the wrong array
This commit is contained in:
parent
b077335a30
commit
b74c61777a
@ -42,7 +42,7 @@ class StatsSocket
|
|||||||
line = ""
|
line = ""
|
||||||
|
|
||||||
while Time.now - start < 10
|
while Time.now - start < 10
|
||||||
if IO.select(nil, [socket], nil, 10)
|
if IO.select([socket], nil, nil, 10)
|
||||||
begin
|
begin
|
||||||
line << socket.read_nonblock(1000)
|
line << socket.read_nonblock(1000)
|
||||||
rescue IO::WaitReadable
|
rescue IO::WaitReadable
|
||||||
|
Loading…
Reference in New Issue
Block a user