Skip to content

Commit

Permalink
Fix a side-effect for #16
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Dec 27, 2019
1 parent c5fe156 commit 89ef3f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.9.1
## 0.9.1+1

**New Feature:**

Expand Down
6 changes: 3 additions & 3 deletions lib/src/adapter/adapter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ class _MemoryStoreAdapter extends EventEmitter implements Adapter {
var rooms = sids[id];
if (rooms != null) {
for (var room in rooms.keys) {
if (rooms.containsKey(room)) {
rooms[room].del(id);
if (rooms[room].length == 0) rooms.remove(room);
if (this.rooms.containsKey(room)) {
this.rooms[room].del(id);
if (this.rooms[room].length == 0) this.rooms.remove(room);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: socket_io
description: >
Port of JS/Node library Socket.io. It enables real-time, bidirectional and
event-based communication cross-platform.
version: 0.9.1
version: 0.9.1+1
author: jumperchen <[email protected]>
homepage: https://www.zkoss.org
repository: https://github.com/rikulo/socket.io-dart
Expand Down

0 comments on commit 89ef3f3

Please sign in to comment.