Skip to content

Commit

Permalink
Fixed a common SocketException in NTRUDPThread
Browse files Browse the repository at this point in the history
  • Loading branch information
ChainSwordCS committed Feb 15, 2024
1 parent 6c3bde2 commit 710df6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/chokistream/NTRUDPThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public Frame getFrame() throws InterruptedException {

public void close() {
shouldDie.set(true);
socket.close();
}

@Override
Expand Down Expand Up @@ -162,6 +161,7 @@ public void run() {
e.printStackTrace();
}
}
socket.close();
}

}

0 comments on commit 710df6e

Please sign in to comment.