summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0065/proxy.py
diff options
context:
space:
mode:
authorSandro Munda <sandro.munda@guardis.com>2012-06-07 18:37:42 +0200
committerSandro Munda <sandro.munda@guardis.com>2012-06-07 18:38:57 +0200
commitc59a6d0f51112b1bc35f9d492342dea63bfce6e5 (patch)
treeb279c7f8f8f23f154195b725ff25cd959297f2a5 /sleekxmpp/plugins/xep_0065/proxy.py
parent2cd936318ddf7a0b3e096f7070ec83a16ddb9e89 (diff)
downloadslixmpp-c59a6d0f51112b1bc35f9d492342dea63bfce6e5.tar.gz
slixmpp-c59a6d0f51112b1bc35f9d492342dea63bfce6e5.tar.bz2
slixmpp-c59a6d0f51112b1bc35f9d492342dea63bfce6e5.tar.xz
slixmpp-c59a6d0f51112b1bc35f9d492342dea63bfce6e5.zip
Sent a socks_closed when the socket is closed in the xep_0065 plugin.
Diffstat (limited to 'sleekxmpp/plugins/xep_0065/proxy.py')
-rw-r--r--sleekxmpp/plugins/xep_0065/proxy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0065/proxy.py b/sleekxmpp/plugins/xep_0065/proxy.py
index 86598df3..89f37399 100644
--- a/sleekxmpp/plugins/xep_0065/proxy.py
+++ b/sleekxmpp/plugins/xep_0065/proxy.py
@@ -217,7 +217,10 @@ class xep_0065(base_plugin):
proxy = self.proxy_threads.get(sid)
if proxy:
- self.xmpp.event('socks_recv', data)
+ if not data:
+ self.xmpp.event('socks_closed', sid)
+ else:
+ self.xmpp.event('socks_recv', data)
class Proxy(Thread):