Skip to content

Commit

Permalink
Stop task handler if there is no request
Browse files Browse the repository at this point in the history
See also: #7
  • Loading branch information
BECATRUE committed Nov 21, 2024
1 parent 8898a54 commit 38152ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wlm_server/operation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ def handle_info(request, ch: int):
if not is_channel_running:
message = MessageInfo(ActionType.OPERATE, ch, {'on': False})
message_queue.push(message)
if not is_wlm_running:
message = MessageInfo(ActionType.CLOSE, None, None)
message_queue.push(message)

0 comments on commit 38152ef

Please sign in to comment.