mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-07-22 14:30:51 -04:00
fix hanging java and monero processes on 400 or 500 error
This commit is contained in:
parent
9608a4236c
commit
222fe7e528
2 changed files with 67 additions and 61 deletions
|
@ -1330,7 +1330,15 @@ export default class HavenoClient {
|
|||
await this._shutdownServerClient.stop(new StopRequest(), {password: this._password}); // process receives 'exit' event
|
||||
if (this._process) await HavenoUtils.kill(this._process);
|
||||
} catch (e: any) {
|
||||
throw new HavenoError(e.message, e.code);
|
||||
console.error("Error gracefully shutting down havenod: " + e.message);
|
||||
if (this._process) {
|
||||
try {
|
||||
await HavenoUtils.kill(this._process);
|
||||
} catch (e: any) {
|
||||
console.error("Error terminating havenod process: " + e.message + ". Stopping forcefully");
|
||||
await HavenoUtils.kill(this._process, "SIGKILL");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue