1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-16 09:10:35 +03:00

Fix for stopping proxy listener.

Fixes #85.
This commit is contained in:
Jonathan Harris 2016-01-31 12:43:17 +00:00
parent 8507ba048d
commit bf24f8460b

View File

@ -30,6 +30,7 @@ class _EDProxy:
def __init__(self):
self.root = None
self.lock = threading.Lock()
self.addr = None
self.port = None
@ -54,7 +55,8 @@ class _EDProxy:
def stop(self):
# Still listening, but stop callbacks
self.root.unbind_all('<<ProxyJump>>')
if self.root:
self.root.unbind_all('<<ProxyJump>>')
def status(self):
self.lock.acquire()