mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:21:23 +08:00
waiting on the wrong array
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user