Skip to content

Commit 840836f

Browse files
committed
fixing: Remote Control Server does not terminate when PyRadio is closed
with Alt-F4 or using the close button
1 parent d55553f commit 840836f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyradio/radio.py

+4
Original file line numberDiff line numberDiff line change
@@ -10079,6 +10079,10 @@ def _linux_signal_handler(self, a_signal, a_frame):
1007910079
)
1008010080
except:
1008110081
pass
10082+
while self._remote_control_server is not None:
10083+
ret, _ = self._remote_control_server.close_server()
10084+
if ret:
10085+
self._remote_control_server = None
1008210086

1008310087
def _windows_signal_handler(self, event):
1008410088
''' windows signal handler

0 commit comments

Comments
 (0)