diff --git a/app/Libraries/GameBridge/BridgeConnectionSocket.php b/app/Libraries/GameBridge/BridgeConnectionSocket.php index f57e3bb..8b2e976 100644 --- a/app/Libraries/GameBridge/BridgeConnectionSocket.php +++ b/app/Libraries/GameBridge/BridgeConnectionSocket.php @@ -99,7 +99,11 @@ private function connect() public function disconnect() { if ($this->socket) { - socket_close($this->socket); + try { + socket_close($this->socket); + } catch (\Throwable) { + // possible we already closed this socket + } } if ($this->lock) { $this->lock->release();