Sent a socks_closed when the socket is closed in the xep_0065 plugin.
This commit is contained in:
		| @@ -217,7 +217,10 @@ class xep_0065(base_plugin): | |||||||
|  |  | ||||||
|         proxy = self.proxy_threads.get(sid) |         proxy = self.proxy_threads.get(sid) | ||||||
|         if proxy: |         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): | class Proxy(Thread): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sandro Munda
					Sandro Munda