release lock in finally statement
This commit is contained in:
parent
c0fea37f13
commit
2b628a90d4
|
@ -749,9 +749,10 @@ if __name__ == '__main__':
|
|||
store.catch_up()
|
||||
memorypool_update(store)
|
||||
block_number = store.get_block_number(1)
|
||||
dblock.release()
|
||||
except:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
finally:
|
||||
dblock.release()
|
||||
time.sleep(10)
|
||||
|
||||
print "server stopped"
|
||||
|
|
Loading…
Reference in New Issue