Skip to content

Commit

Permalink
closed wallet user alert
Browse files Browse the repository at this point in the history
- housekeeping
  • Loading branch information
jseagrave21 committed Sep 24, 2019
1 parent 4d8ec56 commit cc50060
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion neo/Prompt/PromptData.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ def close_wallet():
Blockchain.Default().PersistCompleted.on_change -= PromptData.Wallet.ProcessNewBlock
PromptData.Wallet.Close()
PromptData.Wallet = None
print("Closed wallet %s" % path)
print(f"Closed wallet {path}")
return True
2 changes: 2 additions & 0 deletions neo/bin/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ def main():

wallet = main_task.result()
if wallet:
path = wallet._path
wallet.Close()
logger.info(f"Closed wallet {path}")


if __name__ == "__main__":
Expand Down

0 comments on commit cc50060

Please sign in to comment.