Remove unused event in ServerThreadHelper
Change-Id: Ib9ebe363f29cf9a0034550ad852882c2cde8bb49
This commit is contained in:
parent
a3fa8ffec9
commit
f9b14c0337
@ -66,7 +66,6 @@ class ServerThreadHelper(threading.Thread):
|
|||||||
self.daemon = True
|
self.daemon = True
|
||||||
self._server = server
|
self._server = server
|
||||||
self._stop_event = threading.Event()
|
self._stop_event = threading.Event()
|
||||||
self._wait_event = threading.Event()
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self._server.start()
|
self._server.start()
|
||||||
@ -75,7 +74,6 @@ class ServerThreadHelper(threading.Thread):
|
|||||||
self._server.start()
|
self._server.start()
|
||||||
self._server.stop()
|
self._server.stop()
|
||||||
self._server.wait()
|
self._server.wait()
|
||||||
self._wait_event.set()
|
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self._stop_event.set()
|
self._stop_event.set()
|
||||||
|
Loading…
Reference in New Issue
Block a user