Prevent an exception when multiple signals are tried to send to an unreachable client.
This commit is contained in:
parent
3ad87b0e91
commit
e95be5d131
|
@ -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…
Reference in New Issue