diff --git a/src/Peer/Client.php b/src/Peer/Client.php index 38c20fe..d66f285 100644 --- a/src/Peer/Client.php +++ b/src/Peer/Client.php @@ -451,8 +451,8 @@ public function onClose($reason) $this->onSessionEnd($this->session); $this->session->onClose(); $this->session = null; - $this->emit('close', [$reason]); } + $this->emit('close', [$reason]); $this->roles = []; $this->callee = null;