From e95be5d1313b4687d9b447cb2911b91002cfe8bc Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Sun, 10 Feb 2008 13:39:47 +0000 Subject: [PATCH] Prevent an exception when multiple signals are tried to send to an unreachable client. --- deluge/core/signalmanager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/core/signalmanager.py b/deluge/core/signalmanager.py index 31db89dd1..10e61c3f0 100644 --- a/deluge/core/signalmanager.py +++ b/deluge/core/signalmanager.py @@ -66,6 +66,8 @@ class SignalManager(component.Component): gobject.idle_add(self._emit, uri, signal, 1, *data) def _emit(self, uri, signal, count, *data): + if uri not in self.clients: + return client = self.clients[uri] try: client.emit_signal(signal, *data)