Replace deprecated threading.currentThread with current_thread (#8168)

This commit is contained in:
Hugo van Kemenade 2022-06-13 01:05:01 +03:00 committed by GitHub
parent a18df1456c
commit 5d1205a84a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ def update_backend_info(self, interval=60):
"""Updates the monitor info
Called from another thread.
"""
my_thread = threading.currentThread()
my_thread = threading.current_thread()
current_interval = 0
started = False
all_dead = False