mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 23:41:35 +00:00
release lock in finally statement
This commit is contained in:
parent
c0fea37f13
commit
2b628a90d4
1 changed files with 2 additions and 1 deletions
|
@ -749,9 +749,10 @@ if __name__ == '__main__':
|
||||||
store.catch_up()
|
store.catch_up()
|
||||||
memorypool_update(store)
|
memorypool_update(store)
|
||||||
block_number = store.get_block_number(1)
|
block_number = store.get_block_number(1)
|
||||||
dblock.release()
|
|
||||||
except:
|
except:
|
||||||
traceback.print_exc(file=sys.stdout)
|
traceback.print_exc(file=sys.stdout)
|
||||||
|
finally:
|
||||||
|
dblock.release()
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
|
||||||
print "server stopped"
|
print "server stopped"
|
||||||
|
|
Loading…
Add table
Reference in a new issue