Skip to content

Commit b2d7a99

Browse files
committed
Remove all listeners once Socket is closed
1 parent 31b4992 commit b2d7a99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Datagram/Socket.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function close()
8080
{
8181
$this->emit('close', array($this));
8282
$this->pause();
83+
$this->removeAllListeners();
8384

8485
fclose($this->socket);
8586
$this->socket = false;

0 commit comments

Comments
 (0)