mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 22:29:24 +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.fastqueue.reset()
|
||||||
self.startedSync.clear()
|
self.startedSync.clear()
|
||||||
for callback in self.callbacks:
|
for callback in self.callbacks:
|
||||||
|
try:
|
||||||
callback.reset()
|
callback.reset()
|
||||||
|
except Exception:
|
||||||
|
log.exception('Uncaught exception in %r.reset()', callback)
|
||||||
self._queueConnectMessages()
|
self._queueConnectMessages()
|
||||||
|
|
||||||
def _setNonResettingVariables(self):
|
def _setNonResettingVariables(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user