Merge pull request #457 from ngosang/feature/cpu

Reduce CPU, Disk and Memory usage
This commit is contained in:
morpheus65535 2019-06-02 08:56:02 -04:00 committed by GitHub
commit 47fbe95420
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,6 @@ if __name__ == '__main__':
pass
def daemon():
threading.Timer(1.0, daemon).start()
if os.path.exists(stopfile):
try:
os.remove(stopfile)
@ -57,12 +56,9 @@ if __name__ == '__main__':
else:
start_bazarr()
daemon()
start_bazarr()
# Keep the script running forever.
while True:
time.sleep(0.001)
daemon()
time.sleep(1)