summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/psmb4j
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-24 11:44:51 +0800
committerKeuin <[email protected]>2022-09-25 19:31:34 +0800
commit1f697291f91aec5f76e017ae955822356adb22ad (patch)
tree52528bcaa5cfffe63bd293320acaec129070f5ce /src/main/java/com/keuin/psmb4j
parentfac973923d378c7111ba04114ca145b7ba03dfb9 (diff)
Fix PSMB reconnect not working. Use try-with.HEADmaster
Diffstat (limited to 'src/main/java/com/keuin/psmb4j')
-rw-r--r--src/main/java/com/keuin/psmb4j/BaseClient.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/psmb4j/BaseClient.java b/src/main/java/com/keuin/psmb4j/BaseClient.java
index bdcd97c..94f46cb 100644
--- a/src/main/java/com/keuin/psmb4j/BaseClient.java
+++ b/src/main/java/com/keuin/psmb4j/BaseClient.java
@@ -109,6 +109,7 @@ public abstract class BaseClient implements AutoCloseable {
try {
socket.close();
} catch (IOException ignored) {
+ } finally {
socket = null;
}
}