From c4bb6c900c9fa92fe36b108edad0449358aa5046 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 22 Aug 2013 14:54:53 -0700 Subject: [PATCH] Don't reset _expected_server_name when connecting. --- sleekxmpp/clientxmpp.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/sleekxmpp/clientxmpp.py b/sleekxmpp/clientxmpp.py index c8c389f6..6bcb36ba 100644 --- a/sleekxmpp/clientxmpp.py +++ b/sleekxmpp/clientxmpp.py @@ -155,8 +155,6 @@ class ClientXMPP(BaseXMPP): address = (self.boundjid.host, 5222) self.dns_service = 'xmpp-client' - self._expected_server_name = self.boundjid.host - return XMLStream.connect(self, address[0], address[1], use_tls=use_tls, use_ssl=use_ssl, reattempt=reattempt)