Close lock before updating

This commit is contained in:
shortcutme 2016-12-04 18:55:33 +01:00
parent 58848068e6
commit c69f70bdb0
1 changed files with 4 additions and 4 deletions

View File

@ -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()