fix(remote): end the remote session when a signal or a closed console stops the client

This commit is contained in:
imSp4rky
2026-11-30 17:29:35 -07:00
parent ffe812f054
commit bafce963d3
14 changed files with 1225 additions and 31 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ from rich.padding import Padding
from rich.rule import Rule
from rich.spinner import Spinner
from unshackle.core import login
from unshackle.core import login, process_exit
from unshackle.core.config import config
from unshackle.core.console import SyncLive, console
from unshackle.core.constants import AnyTrack
@@ -134,7 +134,7 @@ class _Mute(local):
"""This thread's RemoteError log state: inside ``session_call`` (``recovering``) and under ``quiet()``."""
recovering = False
quiet: Callable[[], bool] = staticmethod(lambda: False)
quiet: Callable[[], bool] = staticmethod(process_exit.stopping)
_mute = _Mute()