[Telepathy-commits] [telepathy-python/master] call.py: make ^C clean up connection in incoming mode.
will.thompson at collabora.co.uk
Mon Feb 16 11:39:05 PST 2009
Previously, after you'd received a call self.channel was non-None when
KeyboardInterrupt occurred, so Close() would be called on it. But the
channel had gone away, so Close() would throw an (unhandled) exception,
so call.py would never get around to calling Disconnect().
examples/call.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/examples/call.py b/examples/call.py
index ee93503..cae9f69 100644
@@ -180,6 +180,7 @@ class IncomingCall(Call):
print "channel closed"
+ self.channel = None
print "waiting for incoming call"
if __name__ == '__main__':
More information about the telepathy-commits