summaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
authorngosang <[email protected]>2019-06-01 01:00:32 +0200
committerngosang <[email protected]>2019-06-01 01:14:40 +0200
commit42bbd7439e335cd88502191f76536236e6cb64e5 (patch)
tree448a9b092363d8e227847dcdd0295fd39b3e3038 /bazarr.py
parent9ef0ce689d058c572875746c89d50fd178260d2d (diff)
downloadbazarr-42bbd7439e335cd88502191f76536236e6cb64e5.tar.gz
bazarr-42bbd7439e335cd88502191f76536236e6cb64e5.zip
Reduce CPU, Disk and Memory usage
Diffstat (limited to 'bazarr.py')
-rw-r--r--bazarr.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/bazarr.py b/bazarr.py
index 93abf9ddc..a6e7740e7 100644
--- a/bazarr.py
+++ b/bazarr.py
@@ -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)