From 1f697291f91aec5f76e017ae955822356adb22ad Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 24 Sep 2022 11:44:51 +0800 Subject: Fix PSMB reconnect not working. Use try-with. --- src/main/java/com/keuin/psmb4j/BaseClient.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com/keuin/psmb4j/BaseClient.java') 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; } } -- cgit v1.2.3