Browse Source

FIX: thread.isAlive() replaced with thread.is_alive() (deprecated)

PYADPT-116
heck 8 months ago
parent
commit
fc927ccaac
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/pEp/__init__.py

+ 2
- 2
src/pEp/__init__.py View File

@ -54,7 +54,7 @@ def shutdown_sync() -> None :
def is_sync_active() -> bool:
"""True if sync is active, False otherwise"""
return Sync.getInstance().isAlive()
return Sync.getInstance().is_alive()
def message_to_send(msg):
@ -123,7 +123,7 @@ class Sync(Thread):
@staticmethod
def shutdown_sync():
if Sync.__instance:
if Sync.__instance.isAlive():
if Sync.__instance.is_alive():
pEp.inject_sync_shutdown()
Sync.__instance.join()
Sync.__instance = None


Loading…
Cancel
Save