mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 15:35:06 +00:00
fix(remote): end the remote session when a signal or a closed console stops the client
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user