Skip to content

Commit 89ef3f3

Browse files
committed
Fix a side-effect for #16
1 parent c5fe156 commit 89ef3f3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.9.1
1+
## 0.9.1+1
22

33
**New Feature:**
44

lib/src/adapter/adapter.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ class _MemoryStoreAdapter extends EventEmitter implements Adapter {
9393
var rooms = sids[id];
9494
if (rooms != null) {
9595
for (var room in rooms.keys) {
96-
if (rooms.containsKey(room)) {
97-
rooms[room].del(id);
98-
if (rooms[room].length == 0) rooms.remove(room);
96+
if (this.rooms.containsKey(room)) {
97+
this.rooms[room].del(id);
98+
if (this.rooms[room].length == 0) this.rooms.remove(room);
9999
}
100100
}
101101
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: socket_io
22
description: >
33
Port of JS/Node library Socket.io. It enables real-time, bidirectional and
44
event-based communication cross-platform.
5-
version: 0.9.1
5+
version: 0.9.1+1
66
author: jumperchen <jumperchen@potix.com>
77
homepage: https://www.zkoss.org
88
repository: https://github.com/rikulo/socket.io-dart

0 commit comments

Comments
 (0)