Skip to content

Commit

Permalink
Foi
Browse files Browse the repository at this point in the history
  • Loading branch information
shai-almog committed Nov 4, 2023
1 parent 8bc1dcc commit 64b868f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CodenameOne/src/com/codename1/io/SocketConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
* @author Shai Almog
*/
public abstract class SocketConnection {
/**
* Keeping member field so the GC won't collect these objects before the socket itself is collected.
* This can cause a problem since there's native reliance on these objects.
*/
InputStream input;
OutputStream output;

private int connectTimeout;
private boolean connected;

Expand Down

0 comments on commit 64b868f

Please sign in to comment.