Make stop node part of the logout blocking
This commit is contained in:
parent
e118e89107
commit
cf3dc0664c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue