Skip to content

Commit

Permalink
Replace deprecated flask shutdown with thread kill. #1780
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Mar 10, 2022
1 parent 2c96c0c commit f1aa3ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dash/testing/application_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ def tmp_app_path(self):


class StoppableThread(threading.Thread):
def get_id(self):
def get_id(self): # pylint: disable=R1710
if hasattr(self, "_thread_id"):
return self._thread_id
for thread_id, thread in threading._active.items():
for thread_id, thread in threading._active.items(): # pylint: disable=W0212
if thread is self:
return thread_id

Expand Down

0 comments on commit f1aa3ce

Please sign in to comment.