From c75099decc8e1f854a0742f74d7ca7f8361473a0 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 2 Nov 2016 22:53:18 -0700 Subject: [PATCH] Fix script timeout --- plexpy/notifiers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 3a6b6f86..621a15dc 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -2242,7 +2242,7 @@ class SCRIPTS(Notifier): stderr=subprocess.PIPE, cwd=self.config['script_folder']) - if self.config['timeout']: + if self.config['timeout'] > 0: timer = threading.Timer(self.config['timeout'], kill_script, (process,)) else: timer = None