Make timeout 0.01 sec.

This commit is contained in:
AZ Huang 2013-12-09 12:25:08 +08:00
parent dc94d1607c
commit e251f6b914

View file

@ -68,7 +68,7 @@ class SyncBot(Tox):
self.send_message(tid, 'invite')
except: pass
readable, _, _ = select.select([self.irc], [], [], 0.02)
readable, _, _ = select.select([self.irc], [], [], 0.01)
if readable:
self.readbuffer += self.irc.recv(4096)