Make stop node part of the logout blocking

This commit is contained in:
Dmitry 2019-08-21 14:53:33 +03:00 committed by Dmitry Shulyak
parent e118e89107
commit cf3dc0664c
2 changed files with 2 additions and 4 deletions

View File

@ -404,8 +404,7 @@ func Logout() *C.char {
if err != nil {
makeJSONResponse(err)
}
api.RunAsync(statusBackend.StopNode)
return makeJSONResponse(nil)
return makeJSONResponse(statusBackend.StopNode())
}
// SignMessage unmarshals rpc params {data, address, password} and passes

View File

@ -389,8 +389,7 @@ func Logout() string {
if err != nil {
makeJSONResponse(err)
}
api.RunAsync(statusBackend.StopNode)
return makeJSONResponse(nil)
return makeJSONResponse(statusBackend.StopNode())
}
// SignMessage unmarshals rpc params {data, address, password} and