Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Dec 17, 2023
1 parent d001abf commit e562b07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection/AsyncTcpConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public function getRemoteURI(): string
public function checkConnection(): void
{
// Remove EV_EXPECT for windows.
if (DIRECTORY_SEPARATOR === '\\' && $this->eventLoop && method_exists($this->eventLoop, 'offExcept')) {
if (DIRECTORY_SEPARATOR === '\\' && method_exists($this->eventLoop, 'offExcept')) {
$this->eventLoop->offExcept($this->socket);
}
// Remove write listener.
Expand Down
3 changes: 3 additions & 0 deletions src/Connection/TcpConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,9 @@ public function destroy(): void
// Remove event listener.
$this->eventLoop->offReadable($this->socket);
$this->eventLoop->offWritable($this->socket);
if (DIRECTORY_SEPARATOR === '\\' && method_exists($this->eventLoop, 'offExcept')) {
$this->eventLoop->offExcept($this->socket);
}

// Close socket.
try {
Expand Down

0 comments on commit e562b07

Please sign in to comment.