Skip to content

Commit a93104b

Browse files
committed
Give more meaningfull name to listener thread variable
1 parent 5243583 commit a93104b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/jukebox/components/controls/bluetooth_audio_buttons/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def activate(device_name: str, exact: bool = True, open_initial_delay: float = 0
4949
# Do a bit of housekeeping: Delete dead threads
5050
listener = list(filter(lambda x: x.is_alive(), listener))
5151
# Check that there is no running thread for this device already
52-
for ll in listener:
53-
if ll.device_request == device_name and ll.is_alive():
52+
for thread in listener:
53+
if thread.device_request == device_name and thread.is_alive():
5454
logger.debug(f"Button listener thread already active for '{device_name}'")
5555
return
5656

src/jukebox/components/controls/event_devices/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def activate(
5757
# Do a bit of housekeeping: Delete dead threads
5858
listener = list(filter(lambda x: x.is_alive(), listener))
5959
# Check that there is no running thread for this device already
60-
for ll in listener:
61-
if ll.device_request == device_name and ll.is_alive():
60+
for thread in listener:
61+
if thread.device_request == device_name and thread.is_alive():
6262
logger.debug(
6363
"Event device listener thread already active for '%s'",
6464
device_name,

0 commit comments

Comments
 (0)