Skip to content

Commit

Permalink
close wallet after use
Browse files Browse the repository at this point in the history
  • Loading branch information
nrempel committed Mar 8, 2018
1 parent 6314a50 commit 4bc7fc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -128,4 +128,6 @@ Network Trash Folder
Temporary Items
.apdisk

.mnt
.mnt

Pipfile
2 changes: 2 additions & 0 deletions server/server.py
Expand Up @@ -275,6 +275,8 @@ async def register(request):
print('\n\nSend Nym: ' + str(ag) + '\n\n')
await trust_anchor.send_nym(ag.did, ag.verkey)

await new_agent.close()

return sanic_json({
'seed': seed,
'did': new_agent.did,
Expand Down

0 comments on commit 4bc7fc2

Please sign in to comment.