mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +00:00
Prevent an exception when multiple signals are tried to send to an unreachable client.
This commit is contained in:
parent
3ad87b0e91
commit
e95be5d131
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue