Skip to content

Commit c61511d

Browse files
authored
Update Websocket.php
1 parent e9de2aa commit c61511d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Websocket/Websocket.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ public function emit(string $event, $data): bool
170170
// that means trying to emit to a non-existing room
171171
// skip it directly instead of pushing to a task queue
172172
if (empty($fds) && $assigned) {
173+
$this->reset();
173174
return false;
174175
}
175176

0 commit comments

Comments
 (0)