Added service restart

This commit is contained in:
Mark Qvist 2025-07-14 00:11:21 +02:00
parent aee675d38b
commit 0d2f7b25a3
3 changed files with 93 additions and 3 deletions

View file

@ -481,6 +481,9 @@ class SidebandService():
self.sideband.cleanup()
self.release_locks()
# TODO: Check if this works in all cases
self.android_service.stopSelf()
def handle_exception(exc_type, exc_value, exc_traceback):
if issubclass(exc_type, KeyboardInterrupt):
sys.__excepthook__(exc_type, exc_value, exc_traceback)