Wait 1 second to close files between restarts

This commit is contained in:
HelloZeroNet 2016-03-12 20:34:37 +01:00
parent 56dbd88889
commit 6519e846d8

View file

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