Skip to content

Commit

Permalink
Close lock before updating
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Dec 4, 2016
1 parent 5884806 commit c69f70b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zeronet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -65,4 +65,4 @@ def main():
print "Bye."

if __name__ == '__main__':
main()
main()

0 comments on commit c69f70b

Please sign in to comment.