Close lock before updating
This commit is contained in:
parent
58848068e6
commit
c69f70bdb0
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
Loading…
Reference in a new issue