release lock in finally statement

This commit is contained in:
ThomasV 2012-02-08 11:58:30 +03:00
parent c0fea37f13
commit 2b628a90d4
1 changed files with 2 additions and 1 deletions

View File

@ -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"