Fix restart exception

This commit is contained in:
HelloZeroNet 2016-03-16 21:27:00 +01:00
parent 3a8e20df7d
commit eea55f8f16
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ def main():
# Restart
gc.collect() # Garbage collect
print "Restarting..."
import time
time.sleep(1) # Wait files to close
args = sys.argv[:]
args.insert(0, sys.executable)