Explorar o código

interupted syscall

bigeagle %!s(int64=11) %!d(string=hai) anos
pai
achega
658cf8336c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      tunasync/tunasync.py

+ 4 - 1
tunasync/tunasync.py

@@ -207,7 +207,10 @@ class TUNASync(object):
         signal.signal(signal.SIGUSR2, self.reload_mirrors_force)
 
         while 1:
-            name, status = self.channel.get()
+            try:
+                name, status = self.channel.get()
+            except IOError:
+                continue
 
             if status == "QUIT":
                 print("New configuration applied to {}".format(name))