Skip to content

Commit

Permalink
I dunno, maybe it'll help?
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Dec 2, 2021
1 parent 6bebed9 commit ccfa10a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/org/ldk/batteries/NioPeerHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,13 @@ public void interrupt() {
synchronized(listening_sockets) {
try {
selector.close();
for (ServerSocketChannel chan : listening_sockets) {
chan.close();
}
} catch (IOException ignored) {}
for (ServerSocketChannel chan : listening_sockets) {
try {
chan.close();
} catch (IOException ignored) {}
}
listening_sockets.clear();
}
}

Expand Down

0 comments on commit ccfa10a

Please sign in to comment.