summarylogtreecommitdiffstats
path: root/fix-signal-handling.patch
blob: 3520787099ac6cdc254f92ab53501dc9d36812a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/sickbeard/__init__.py
+++ b/sickbeard/__init__.py
@@ -1339,9 +1339,8 @@


 def sig_handler(signum=None, frame=None):
-    if isinstance(signum, type(None)):
-        logger.log(u'Signal %i caught, saving and exiting...' % int(signum))
-        events.put(events.SystemEvent.SHUTDOWN)
+    logger.log(u'Signal %i caught, saving and exiting...' % int(signum))
+    events.put(events.SystemEvent.SHUTDOWN)


 def save_all():