mirror of
https://github.com/markqvist/Sideband.git
synced 2025-08-02 19:46:27 -04:00
Added service restart
This commit is contained in:
parent
aee675d38b
commit
0d2f7b25a3
3 changed files with 93 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue