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

Commit da0e3e4

Browse files
committed
Merge pull request repejota#27 from repejota/FIXING-SMALL-BUGS
Fixing small bugs
2 parents b4e9014 + f4f4497 commit da0e3e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)