Skip to content

Commit

Permalink
Move #removeFromConnectionsAndListeners into the finally block. (libg…
Browse files Browse the repository at this point in the history
  • Loading branch information
crykn authored Dec 30, 2023
1 parent 9f1333b commit 024ce76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdx/src/com/badlogic/gdx/net/NetJavaImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ public void run () {
if (listener != null) {
listener.handleHttpResponse(clientResponse);
}
removeFromConnectionsAndListeners(httpRequest);
} finally {
removeFromConnectionsAndListeners(httpRequest);
connection.disconnect();
}
} catch (final Exception e) {
Expand Down

0 comments on commit 024ce76

Please sign in to comment.