mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 06:47:54 +01:00
Fix incorrect synchronization on map values.
This commit is contained in:
parent
0a9f529f72
commit
00ce3d7523
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,7 @@ public class PeerGroup {
|
|||
synchronized (PeerGroup.this) {
|
||||
running = false;
|
||||
shutdownPeerDiscovery();
|
||||
synchronized (channelFutures.values()) {
|
||||
synchronized (channelFutures) {
|
||||
for (ChannelFuture future : channelFutures.values()) {
|
||||
future.getChannel().close();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue