mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +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)
|
gobject.idle_add(self._emit, uri, signal, 1, *data)
|
||||||
|
|
||||||
def _emit(self, uri, signal, count, *data):
|
def _emit(self, uri, signal, count, *data):
|
||||||
|
if uri not in self.clients:
|
||||||
|
return
|
||||||
client = self.clients[uri]
|
client = self.clients[uri]
|
||||||
try:
|
try:
|
||||||
client.emit_signal(signal, *data)
|
client.emit_signal(signal, *data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue