You've already forked Douyin_Web_Live
测试在linux上可以正常gracefully exit
后期AFK了,工作太忙了
This commit is contained in:
@ -43,6 +43,9 @@ class IOutput():
|
||||
def other_output(self, message_type: str, message_raw: bytes):
|
||||
...
|
||||
|
||||
def debug_output(self, message_type: str, message_raw: str):
|
||||
...
|
||||
|
||||
def error_output(self, message_type: str, message_raw: bytes, exception: Exception):
|
||||
...
|
||||
|
||||
|
@ -122,7 +122,8 @@ class OutputManager():
|
||||
self.decode_payload(message)
|
||||
|
||||
def terminate(self):
|
||||
self._should_exit.set()
|
||||
if self._should_exit:
|
||||
self._should_exit.set()
|
||||
MESSAGE_QUEUE.put(None)
|
||||
|
||||
for writer in self._writer:
|
||||
|
Reference in New Issue
Block a user