Sent a socks_closed when the socket is closed in the xep_0065 plugin.
This commit is contained in:
parent
2cd936318d
commit
c59a6d0f51
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue