]> git.ipfire.org Git - oddments/cappie.git/blobdiff - cappie/__init__.py
Use old API of threading code to be compatible with python 2.5.
[oddments/cappie.git] / cappie / __init__.py
index 2fea5e06dad0bb31368f61742e07b62df3bd08cd..1cf1e8d1a7ab971f4485efa2e5e3356f352708bf 100644 (file)
@@ -92,12 +92,12 @@ class Cappie(object):
                        iface.start()
 
                while True:
-                       if not self.queue.is_alive():
+                       if not self.queue.isAlive():
                                self.log.critical("Queue thread died unexpectedly.")
                                return
 
                        for iface in self.__interfaces:
-                               if not iface.is_alive():
+                               if not iface.isAlive():
                                        self.log.critical("Thread died unexpectedly. %s" % iface.dev)
                                        return
                                time.sleep(60)