Sent a socks_closed when the socket is closed in the xep_0065 plugin.
This commit is contained in:
parent
2cd936318d
commit
c59a6d0f51
@ -217,6 +217,9 @@ class xep_0065(base_plugin):
|
|||||||
|
|
||||||
proxy = self.proxy_threads.get(sid)
|
proxy = self.proxy_threads.get(sid)
|
||||||
if proxy:
|
if proxy:
|
||||||
|
if not data:
|
||||||
|
self.xmpp.event('socks_closed', sid)
|
||||||
|
else:
|
||||||
self.xmpp.event('socks_recv', data)
|
self.xmpp.event('socks_recv', data)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user