Skip to content

Commit

Permalink
Merge pull request #498 from bitcraze/ataffanel/remove-setDaemon
Browse files Browse the repository at this point in the history
Remove deprecated call to setDaemon
  • Loading branch information
gemenerik authored Nov 29, 2024
2 parents 580903f + 1d4c5e8 commit 6b4d3ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cflib/crazyflie/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __init__(self, link=None, ro_cache=None, rw_cache=None):
rw_cache=rw_cache)

self.incoming = _IncomingPacketHandler(self)
self.incoming.setDaemon(True)
self.incoming.daemon = True
if self.link:
self.incoming.start()

Expand Down
4 changes: 2 additions & 2 deletions cflib/crazyflie/param.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class _ExtendedTypeFetcher(Thread):

def __init__(self, cf, toc):
Thread.__init__(self)
self.setDaemon(True)
self.daemon = True
self._lock = Lock()

self._cf = cf
Expand Down Expand Up @@ -599,7 +599,7 @@ class _ParamUpdater(Thread):
def __init__(self, cf, useV2, updated_callback):
"""Initialize the thread"""
Thread.__init__(self)
self.setDaemon(True)
self.daemon = True
self.wait_lock = Lock()
self.cf = cf
self._useV2 = useV2
Expand Down
2 changes: 1 addition & 1 deletion cflib/crtp/radiodriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(self, devid: int):

self._lock = Semaphore(1)

self.setDaemon(True)
self.daemon = True

self.start()

Expand Down

0 comments on commit 6b4d3ba

Please sign in to comment.