refactor(lifecycle): set background threads to daemon mode

This commit is contained in:
InfinityPacer
2024-10-18 00:37:20 +08:00
parent 62ac03fb29
commit 348923aaa6
2 changed files with 2 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ class Monitor(metaclass=Singleton):
self.stop()
# 启动文件整理线程
self._transfer_thread = threading.Thread(target=self.__start_transfer)
self._transfer_thread = threading.Thread(target=self.__start_transfer, daemon=True)
self._transfer_thread.start()
# 读取目录配置