File tree 4 files changed +9
-3
lines changed
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.9.4
2
+
3
+ ** Bug Fix:**
4
+
5
+ * [ #23 ] ( https://github.com/rikulo/socket.io-dart/issues/23 ) [ BUG] Calling close on Server raises ConcurrentModificationError
6
+
1
7
## 0.9.3
2
8
3
9
** Bug Fix:**
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ class Server extends Engine {
176
176
@override
177
177
void close () {
178
178
_logger.fine ('closing all open clients' );
179
- for (var key in clients.keys) {
179
+ for (var key in clients.keys. toList (growable : false ) ) {
180
180
if (clients[key] != null ) {
181
181
clients[key].close (true );
182
182
}
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ class Server {
371
371
///
372
372
/// @api public
373
373
void close () {
374
- nsps['/' ].sockets.forEach ((socket) {
374
+ nsps['/' ].sockets.toList (growable : false ). forEach ((socket) {
375
375
socket.onclose ();
376
376
});
377
377
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: socket_io
2
2
description : >
3
3
Port of JS/Node library Socket.io. It enables real-time, bidirectional and
4
4
event-based communication cross-platform.
5
- version : 0.9.3
5
+ version : 0.9.4
6
6
author :
jumperchen <[email protected] >
7
7
homepage : https://www.zkoss.org
8
8
repository : https://github.com/rikulo/socket.io-dart
You can’t perform that action at this time.
0 commit comments