Skip to content

Commit

Permalink
Merge pull request #3734 from freimair/fix_thread_leak
Browse files Browse the repository at this point in the history
Fix resource leak caused by not cleaning up unused threads
  • Loading branch information
ripcurlx authored Dec 4, 2019
2 parents 037f167 + 5f37be1 commit d0bed93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/src/main/java/bisq/network/p2p/network/Connection.java
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ private void doShutDown(CloseConnectionReason closeConnectionReason, @Nullable R

//noinspection UnstableApiUsage
MoreExecutors.shutdownAndAwaitTermination(singleThreadExecutor, 500, TimeUnit.MILLISECONDS);
MoreExecutors.shutdownAndAwaitTermination(bundleSender, 500, TimeUnit.MILLISECONDS);

log.debug("Connection shutdown complete " + this.toString());
// Use UserThread.execute as its not clear if that is called from a non-UserThread
Expand Down

0 comments on commit d0bed93

Please sign in to comment.