From 9a53f45667702306948a78c9f629c68ab95d0ffe Mon Sep 17 00:00:00 2001 From: Shai Almog <67850168+shai-almog@users.noreply.github.com> Date: Sat, 4 Nov 2023 06:44:51 +0200 Subject: [PATCH] Fixed another compilation issue --- CodenameOne/src/com/codename1/io/Socket.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CodenameOne/src/com/codename1/io/Socket.java b/CodenameOne/src/com/codename1/io/Socket.java index 91633b8873..da5ce30f58 100644 --- a/CodenameOne/src/com/codename1/io/Socket.java +++ b/CodenameOne/src/com/codename1/io/Socket.java @@ -133,11 +133,10 @@ public void close() throws IOException { throw new RuntimeException(e.getMessage()); } } - input = null; - output = null; if(Util.getImplementation().isSocketConnected(connection[0])) { Util.getImplementation().disconnectSocket(connection[0]); } + connection[0] = null; } }; }