|
@@ -46,8 +46,5 @@ class Heart(threading.Thread):
|
|
if not self._state == "RUN":
|
|
if not self._state == "RUN":
|
|
return
|
|
return
|
|
self._state = "CLOSE"
|
|
self._state = "CLOSE"
|
|
- print("SET SHUTDOWN!")
|
|
|
|
self._shutdown.set()
|
|
self._shutdown.set()
|
|
- print("WAIT FOR STOPPED")
|
|
|
|
self._stopped.wait() # block until this thread is done
|
|
self._stopped.wait() # block until this thread is done
|
|
- print("STOPPED")
|
|
|