Sent a socks_closed when the socket is closed in the xep_0065 plugin.

This commit is contained in:
Sandro Munda 2012-06-07 18:37:42 +02:00
parent 2cd936318d
commit c59a6d0f51

View file

@ -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):