diff options
author | Lance Stout <lancestout@gmail.com> | 2011-08-25 13:48:43 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-08-25 13:48:43 -0700 |
commit | d929e0deb2ecc6a4b4da7136cba00cb7492573b7 (patch) | |
tree | 511368f84f1774b19702c7e5a420eb129b9d8e72 | |
parent | 4c08c9c52495a3e3e5b794fa346724abfb206c43 (diff) | |
download | slixmpp-d929e0deb2ecc6a4b4da7136cba00cb7492573b7.tar.gz slixmpp-d929e0deb2ecc6a4b4da7136cba00cb7492573b7.tar.bz2 slixmpp-d929e0deb2ecc6a4b4da7136cba00cb7492573b7.tar.xz slixmpp-d929e0deb2ecc6a4b4da7136cba00cb7492573b7.zip |
Shutdown socket before closing.
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index 405f76d3..3ce278f0 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -485,9 +485,9 @@ class XMLStream(object): if not self.auto_reconnect: self.stop.set() try: + self.socket.shutdown(Socket.SHUT_RDWR) self.socket.close() self.filesocket.close() - self.socket.shutdown(Socket.SHUT_RDWR) except Socket.error as serr: self.event('socket_error', serr) finally: |