mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-01 19:26:09 -04:00
do not shut down connection pool in case account is re-recreated
This commit is contained in:
parent
c7b8571842
commit
1dab218d7e
3 changed files with 0 additions and 21 deletions
|
@ -124,17 +124,6 @@ public class Connection implements HasCapabilities, Runnable, MessageListener {
|
|||
return SHUTDOWN_TIMEOUT;
|
||||
}
|
||||
|
||||
public static void shutDownExecutor(int timeoutSeconds) {
|
||||
try {
|
||||
EXECUTOR.shutdown();
|
||||
if (!EXECUTOR.awaitTermination(timeoutSeconds, TimeUnit.SECONDS)) EXECUTOR.shutdownNow();
|
||||
} catch (InterruptedException e) {
|
||||
EXECUTOR.shutdownNow();
|
||||
e.printStackTrace();
|
||||
log.warn("Error shutting down connection executor: " + e.getMessage());
|
||||
}
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Class fields
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue