mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
irclib: catch exception when calling callback.reset()
We don't want the Irc driver to hang when a plugin crashes in this function.
This commit is contained in:
parent
2fe9bedb86
commit
e9a8826805
@ -1208,7 +1208,10 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
|
||||
self.fastqueue.reset()
|
||||
self.startedSync.clear()
|
||||
for callback in self.callbacks:
|
||||
callback.reset()
|
||||
try:
|
||||
callback.reset()
|
||||
except Exception:
|
||||
log.exception('Uncaught exception in %r.reset()', callback)
|
||||
self._queueConnectMessages()
|
||||
|
||||
def _setNonResettingVariables(self):
|
||||
|
Loading…
Reference in New Issue
Block a user