Skip to content

Commit

Permalink
wallets: Don't wait for subprocess shutdown after response
Browse files Browse the repository at this point in the history
We send a `stop` RPC call and wait for the subprocess after receiving a
`success/ok` message. This is unnecessary because we received a `success`
reply already.
  • Loading branch information
alvasw committed Sep 3, 2024
1 parent b2233ef commit 2b5e36e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import bisq.common.file.FileUtils;
import bisq.common.file.LogScanner;
import bisq.wallets.core.exceptions.WalletShutdownFailedException;
import bisq.wallets.core.exceptions.WalletStartupFailedException;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -58,13 +57,7 @@ public void start() {

@Override
public void shutdown() {
try {
invokeStopRpcCall();
process.waitFor(2, TimeUnit.MINUTES);
} catch (InterruptedException e) {
String processName = process.info().command().orElse("<unknown process>");
throw new WalletShutdownFailedException("Cannot shutdown " + processName + ".", e);
}
invokeStopRpcCall();
}

private void waitUntilReady() {
Expand Down

0 comments on commit 2b5e36e

Please sign in to comment.