diff --git a/python/nav/statemon/db.py b/python/nav/statemon/db.py index 6a692b7525..32869eb9c7 100644 --- a/python/nav/statemon/db.py +++ b/python/nav/statemon/db.py @@ -73,7 +73,7 @@ class _DB(threading.Thread): def __init__(self): threading.Thread.__init__(self) - self.setDaemon(1) + self.daemon = True self.queue = queue.Queue() self._hosts_to_ping = [] self._checkers = []