mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-22 21:50:18 +00:00
Improved shutdown handling on interrupt. Updated gitignore.
This commit is contained in:
parent
58f43b163e
commit
165e620043
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@
|
|||||||
testutils
|
testutils
|
||||||
TODO
|
TODO
|
||||||
Examples/RNS
|
Examples/RNS
|
||||||
|
RNS/Utilities/RNS
|
||||||
build
|
build
|
||||||
dist
|
dist
|
||||||
docs/build
|
docs/build
|
||||||
|
@ -173,8 +173,10 @@ class LocalClientInterface(Interface):
|
|||||||
# to now that all connectivity has been cut
|
# to now that all connectivity has been cut
|
||||||
# while service is recovering. Better for
|
# while service is recovering. Better for
|
||||||
# now to take down entire stack.
|
# now to take down entire stack.
|
||||||
RNS.log("Lost connection to local shared RNS instance. Exiting now.", RNS.LOG_CRITICAL)
|
if nowarning == False:
|
||||||
RNS.panic()
|
RNS.log("Lost connection to local shared RNS instance. Exiting now.", RNS.LOG_CRITICAL)
|
||||||
|
|
||||||
|
RNS.exit()
|
||||||
|
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
@ -120,4 +120,5 @@ def panic():
|
|||||||
os._exit(255)
|
os._exit(255)
|
||||||
|
|
||||||
def exit():
|
def exit():
|
||||||
|
print("")
|
||||||
sys.exit(0)
|
sys.exit(0)
|
Loading…
Reference in New Issue
Block a user