Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 90b1369

Browse files
committed
Merge branch 'release/0.2.0'
2 parents 6d90673 + b678788 commit 90b1369

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.2
1+
0.2.0

src/Connection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ public function __construct(ConnectionOptions $options = null)
107107
{
108108
$this->pings = 0;
109109
$this->pubs = 0;
110-
$this->subscriptions = 0;
111110
$this->subscriptions = [];
112111
$this->options = $options;
113112
if (is_null($options)) {
@@ -241,6 +240,8 @@ public function unsubscribe($sid)
241240
{
242241
$msg = 'UNSUB '.$sid;
243242
$this->send($msg);
243+
244+
unset($this->subscriptions[$sid]);
244245
}
245246

246247
/**

0 commit comments

Comments
 (0)