From 79f822bcc0961292c7777c761cc29fdf0cf0730a Mon Sep 17 00:00:00 2001 From: Shai Almog <67850168+shai-almog@users.noreply.github.com> Date: Thu, 31 Aug 2023 07:02:07 +0300 Subject: [PATCH] Fixed CI failures --- CodenameOne/src/com/codename1/io/Socket.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CodenameOne/src/com/codename1/io/Socket.java b/CodenameOne/src/com/codename1/io/Socket.java index 4b595b9da7..6ec54b5d90 100644 --- a/CodenameOne/src/com/codename1/io/Socket.java +++ b/CodenameOne/src/com/codename1/io/Socket.java @@ -126,7 +126,8 @@ public void close() throws IOException { try { Thread.sleep(200); } catch (InterruptedException e) { - throw new RuntimeException(e); + Log.e(e); + throw new RuntimeException(e.getMessage()); } } if(Util.getImplementation().isSocketConnected(connection[0])) { @@ -331,7 +332,6 @@ public int read() throws IOException { return b[0] & 0xff; } - @Override protected void finalize() throws Throwable { try { close(); @@ -394,7 +394,6 @@ public void write(int b) throws IOException { handleSocketError(); } - @Override protected void finalize() throws Throwable { try { close();