强行退出

This commit is contained in:
2021-01-09 08:45:35 +08:00
parent 493ee0f270
commit da30270174

View File

@@ -18,6 +18,7 @@ from time import sleep, time
from RSSEntry import RSSEntry, calHash, ChatEntry, HashEntries from RSSEntry import RSSEntry, calHash, ChatEntry, HashEntries
from traceback import format_exc from traceback import format_exc
from rssparser import RSSParser from rssparser import RSSParser
from os import _exit
class RSSCheckerThread(Thread): class RSSCheckerThread(Thread):
@@ -61,7 +62,7 @@ class RSSCheckerThread(Thread):
except: except:
print(format_exc()) print(format_exc())
if self._main._commandLine._rebuildHashlist and self._main._commandLine._exitAfterRebuild: if self._main._commandLine._rebuildHashlist and self._main._commandLine._exitAfterRebuild:
exit(0) _exit(0)
self._main._commandLine._rebuildHashlist = False self._main._commandLine._rebuildHashlist = False
def __init__(self, m): def __init__(self, m):