Skip to content

Commit

Permalink
Update Socket.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Feb 23, 2022
1 parent 25243e3 commit 09e4733
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public function packet($packet, $preEncoded = false)

public function join($room)
{
if (!$this->connected) return $this;
if(isset($this->rooms[$room])) return $this;
$this->adapter->add($this->id, $room);
$this->rooms[$room] = $room;
Expand Down

0 comments on commit 09e4733

Please sign in to comment.