From 95ad8a1878c5792101e6bd9d1f64a2bbbe223398 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Thu, 14 Oct 2010 16:27:44 -0700 Subject: fixed stream test not disconnecting cleanly --- sleekxmpp/test/sleektest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sleekxmpp/test') diff --git a/sleekxmpp/test/sleektest.py b/sleekxmpp/test/sleektest.py index 89e3712f..efe81212 100644 --- a/sleekxmpp/test/sleektest.py +++ b/sleekxmpp/test/sleektest.py @@ -638,8 +638,8 @@ class SleekTest(unittest.TestCase): that the XMPP client is disconnected after an error. """ if hasattr(self, 'xmpp') and self.xmpp is not None: - self.xmpp.disconnect() self.xmpp.socket.recv_data(self.xmpp.stream_footer) + self.xmpp.disconnect() # ------------------------------------------------------------------ # XML Comparison and Cleanup -- cgit v1.2.3