Mercurial > xib
comparison irclib.py @ 65:75604669fcd9
Some fault tolerance
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 30 Aug 2009 13:05:00 +0200 |
parents | 8fc496eaa17b |
children | 2e3561313b0f |
comparison
equal
deleted
inserted
replaced
64:8fc496eaa17b | 65:75604669fcd9 |
---|---|
190 for s in sockets: | 190 for s in sockets: |
191 for c in self.connections: | 191 for c in self.connections: |
192 if s == c._get_socket(): | 192 if s == c._get_socket(): |
193 c.lock.acquire() | 193 c.lock.acquire() |
194 if hasattr(c, 'socket'): | 194 if hasattr(c, 'socket'): |
195 c.process_data() | 195 try: |
196 c.process_data() | |
197 except: | |
198 self.error('[Error] Unkonwn exception on IRC thread:') | |
199 traceback.print_exc() | |
196 c.lock.release() | 200 c.lock.release() |
197 | 201 |
198 def process_timeout(self): | 202 def process_timeout(self): |
199 """Called when a timeout notification is due. | 203 """Called when a timeout notification is due. |
200 | 204 |