Skip to content

Commit

Permalink
Fix deprecation warning by setting daemon attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Mar 5, 2024
1 parent 6993a25 commit e571b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nav/statemon/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit e571b59

Please sign in to comment.