remove time.sleep() used for daemon threads
This commit is contained in:
4
electrum
4
electrum
@@ -250,9 +250,6 @@ if __name__ == '__main__':
|
||||
if network:
|
||||
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)
|
||||
|
||||
if cmd == 'daemon':
|
||||
@@ -505,5 +502,4 @@ if __name__ == '__main__':
|
||||
else:
|
||||
run_command(cmd, password, args)
|
||||
|
||||
time.sleep(0.1)
|
||||
sys.exit(0)
|
||||
|
||||
Reference in New Issue
Block a user