process error, now can restart

This commit is contained in:
2020-03-28 16:11:50 +08:00
parent 014723a029
commit 6e2953e4e0
12 changed files with 75 additions and 34 deletions

View File

@@ -14,6 +14,6 @@ def main():
from_app_name = 'Unknown'
f.write(from_app_name + ': ' + dp.body.decode() + '\n')
thread = threading.Thread(target=main, args=())
thread = threading.Thread(target=main, args=(), daemon=True)
thread.start()