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

@@ -1,6 +1,7 @@
import threading
import json
import time
import queue
class Jsondata:
@@ -11,7 +12,7 @@ class Jsondata:
self.raw_jsondata = jsondata
self.auto_save = auto_save
self.auto_save_time = auto_save_time
self.thread = threading.Thread(target=self.run, args=())
self.thread = threading.Thread(target=self.run, args=(), daemon=True)
self.thread.start()
def try_to_read_jsondata(self, key, or_value, template=0, output=True):
@@ -36,5 +37,6 @@ class Jsondata:
if self.auto_save:
pass
global_config = {}
global_config = {}
msw_queue = queue.Queue()
jsondata = Jsondata()