Skip to content

Commit b88acbb

Browse files
committed
Force releasing old client connections
This is needed to ensure resources are released when reconnecting.
1 parent 1872b4c commit b88acbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/event_source.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class EventSource {
148148
}
149149

150150
if (_readyState != CLOSED) {
151-
_client.close();
151+
_client.close(force: true);
152152
_client = null;
153153
_readyState = CLOSED;
154154
}

0 commit comments

Comments
 (0)