1
0
mirror of https://github.com/ShadowNinja/LuaIRC.git synced 2025-07-20 16:40:26 +02:00

1 Commits
queue ... sleep

Author SHA1 Message Date
2ccee2a935 Sleep between thoughts when connecting to avoid eating CPU 2014-02-22 17:44:03 -05:00

View File

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