bump version to 0.0.4

This commit is contained in:
2026-08-02 13:30:49 +08:00
parent a06c463653
commit d9ca8a0047
3 changed files with 11 additions and 8 deletions
+6 -7
View File
@@ -246,16 +246,15 @@ export async function stop(state: MoneroWalletState) {
console.log(`[monero] wallet save before stop failed:`, e)
}
if (state.process) {
console.log(
`[monero] sending SIGTERM to wallet-rpc (pid ${state.process.pid})`,
)
state.process.kill()
await Promise.race([state.process.exited, sleep(3000)])
if (state.process.exitCode === null) {
const proc = state.process
console.log(`[monero] sending SIGTERM to wallet-rpc (pid ${proc.pid})`)
proc.kill()
await Promise.race([proc.exited, sleep(3000)])
if (proc.exitCode === null) {
console.log(
`[monero] wallet-rpc did not exit gracefully, sending SIGKILL`,
)
state.process.kill('SIGKILL')
proc.kill('SIGKILL')
}
state.process = null
}