Skip to content

Commit

Permalink
Update TcpConnection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Jan 19, 2019
1 parent 5441016 commit f615edc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Connection/TcpConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,7 @@ public function destroy()
exit(250);
}
}
$this->_sendBuffer = $this->_recvBuffer = '';
if ($this->_status === self::STATUS_CLOSED) {
// Cleaning up the callback to avoid memory leaks.
$this->onMessage = $this->onClose = $this->onError = $this->onBufferFull = $this->onBufferDrain = null;
Expand Down

0 comments on commit f615edc

Please sign in to comment.