Prevent an exception when multiple signals are tried to send to an unreachable client.

This commit is contained in:
Sadrul Habib Chowdhury 2008-02-10 13:39:47 +00:00
parent 3ad87b0e91
commit e95be5d131
1 changed files with 2 additions and 0 deletions

View File

@ -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)