derp
This commit is contained in:
parent
7e2cd62752
commit
6899ab97e8
4 changed files with 4 additions and 0 deletions
BIN
irc.pyc
BIN
irc.pyc
Binary file not shown.
BIN
memos.pyc
BIN
memos.pyc
Binary file not shown.
|
@ -156,6 +156,7 @@ class IRCClient:
|
|||
self.socket.setblocking(0)
|
||||
#if self.timeout:
|
||||
# self.socket.settimeout(self.timeout)
|
||||
self.socket.settimeout(10)
|
||||
helpers.nick(self, self.nick)
|
||||
helpers.user(self, self.nick, self.real_name)
|
||||
|
||||
|
@ -166,6 +167,9 @@ class IRCClient:
|
|||
while not self._end:
|
||||
try:
|
||||
buffer += self.socket.recv(1024)
|
||||
except socket.timeout, e:
|
||||
yield True
|
||||
continue
|
||||
except socket.error, e:
|
||||
try: # a little dance of compatibility to get the errno
|
||||
errno = e.errno
|
||||
|
|
BIN
oyoyo/client.pyc
BIN
oyoyo/client.pyc
Binary file not shown.
Loading…
Reference in a new issue