Merge pull request #2335 from cortesi/shutdown

net.tcp: server should be in shut-down state before start
This commit is contained in:
Thomas Kriechbaumer 2017-05-16 20:44:24 +08:00 committed by GitHub
commit dd3067ab6e
1 changed files with 1 additions and 0 deletions

View File

@ -847,6 +847,7 @@ class TCPServer:
def __init__(self, address):
self.address = address
self.__is_shut_down = threading.Event()
self.__is_shut_down.set()
self.__shutdown_request = False
if self.address == 'localhost':