Browse Source

Close lock before updating

shortcutme 7 years ago
parent
commit
c69f70bdb0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      zeronet.py

+ 4 - 4
zeronet.py

@@ -31,12 +31,12 @@ def main():
             except Exception, err:
                 print "Error closing pyelliptic lib", err
 
-            # Update
-            update.update()
-
             # Close lock file
             sys.modules["main"].lock.close()
 
+            # Update
+            update.update()
+
             # Close log files
             logger = sys.modules["main"].logging.getLogger()
 
@@ -65,4 +65,4 @@ def main():
         print "Bye."
 
 if __name__ == '__main__':
-    main()
+    main()