[telepathy-mission-control/master] SimulatedConnection: close all channels on disconnect

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Apr 1 09:54:57 PDT 2009


---
 test/twisted/mctest.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/test/twisted/mctest.py b/test/twisted/mctest.py
index 35000bc..522257d 100644
--- a/test/twisted/mctest.py
+++ b/test/twisted/mctest.py
@@ -162,6 +162,8 @@ class SimulatedConnection(object):
         self.StatusChanged(cs.CONN_STATUS_DISCONNECTED,
                 cs.CONN_STATUS_REASON_REQUESTED)
         self.q.dbus_return(e.message, signature='')
+        for c in self.channels:
+            c.close()
 
     def InspectHandles(self, e):
         htype, hs = e.args
-- 
1.5.6.5




More information about the telepathy-commits mailing list