mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
IrcClient.py:IrcClient.unqueue(): handle timeout from timed select().
This commit is contained in:
parent
97d8caaf1e
commit
9c34fe3220
@ -109,6 +109,8 @@ class IrcClient:
|
||||
self.clientQueue[0] = msg; return;
|
||||
else:
|
||||
readySet = select.select([], [self.clientSocket.fileno()], [], self.clientNextTimeout - timeNow)
|
||||
if len(readySet[1]) == 0:
|
||||
self.clientQueue[0] = msg; return;
|
||||
else:
|
||||
readySet = select.select([], [self.clientSocket.fileno()], [])
|
||||
msgBytesSent = self.clientSocket.send(msg)
|
||||
|
Loading…
Reference in New Issue
Block a user