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

Merge pull request #20 from ShadowNinja/sleep

Sleep between thoughts when connecting to avoid eating CPU
This commit is contained in:
JakobOvrum 2014-02-23 21:08:21 +01:00
commit d388c89c1e

View File

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