|
@ -250,9 +250,6 @@ if __name__ == '__main__': |
|
|
if network: |
|
|
if network: |
|
|
network.stop() |
|
|
network.stop() |
|
|
|
|
|
|
|
|
# we use daemon threads, their termination is enforced. |
|
|
|
|
|
# this sleep command gives them time to terminate cleanly. |
|
|
|
|
|
time.sleep(0.3) |
|
|
|
|
|
sys.exit(0) |
|
|
sys.exit(0) |
|
|
|
|
|
|
|
|
if cmd == 'daemon': |
|
|
if cmd == 'daemon': |
|
@ -505,5 +502,4 @@ if __name__ == '__main__': |
|
|
else: |
|
|
else: |
|
|
run_command(cmd, password, args) |
|
|
run_command(cmd, password, args) |
|
|
|
|
|
|
|
|
time.sleep(0.1) |
|
|
|
|
|
sys.exit(0) |
|
|
sys.exit(0) |
|
|