Skip to content

Commit

Permalink
Fixed CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
shai-almog committed Aug 31, 2023
1 parent ee1534b commit 79f822b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CodenameOne/src/com/codename1/io/Socket.java
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down Expand Up @@ -331,7 +332,6 @@ public int read() throws IOException {
return b[0] & 0xff;
}

@Override
protected void finalize() throws Throwable {
try {
close();
Expand Down Expand Up @@ -394,7 +394,6 @@ public void write(int b) throws IOException {
handleSocketError();
}

@Override
protected void finalize() throws Throwable {
try {
close();
Expand Down

0 comments on commit 79f822b

Please sign in to comment.