Skip to content

Commit a0d8f44

Browse files
committed
Fix closing socket
1 parent 760e953 commit a0d8f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Datagram/Socket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ public function close()
9292
$this->emit('close', array($this));
9393
$this->pause();
9494

95+
fclose($this->socket);
9596
$this->socket = false;
9697
$this->buffer->close();
97-
fclose($this->socket);
9898

9999
$this->removeAllListeners();
100100
}

0 commit comments

Comments
 (0)