1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2025-01-09 17:40:29 +01:00

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

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