Use socket.sleep(sec) instead of socket.select(nil, nil, sec)

This commit is contained in:
ShadowNinja 2014-03-26 14:37:30 -04:00
parent 7adba31f8c
commit 1749c7a365
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ function meta_preconnect:connect(_host, _port)
repeat
self:think()
socket.select(nil, nil, 0.1) -- Sleep so that we don't eat CPU
socket.sleep(0.1)
until self.authed
end