comparison irclib.py @ 208:1cae0d82501b

(irclib) when reconnecting, call .disconnect() before .connect() Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 06 Mar 2010 15:51:19 +0100
parents 6388579c701d
children c4f058ee3f77
comparison
equal deleted inserted replaced
207:a97a7e930697 208:1cae0d82501b
244 c.process_data() 244 c.process_data()
245 except ServerNotConnectedError: 245 except ServerNotConnectedError:
246 if c.real_nickname == self.bot.nickname: 246 if c.real_nickname == self.bot.nickname:
247 self.bot.restart() 247 self.bot.restart()
248 else: 248 else:
249 c.disconnect(volontary=True)
249 c.connect() 250 c.connect()
250 c.lock.release() 251 c.lock.release()
251 252
252 def process_timeout(self): 253 def process_timeout(self):
253 """Called when a timeout notification is due. 254 """Called when a timeout notification is due.