Skip to content

Commit

Permalink
No actual need for disconnect() here.
Browse files Browse the repository at this point in the history
The cleanup is done inside onError() anyway.
  • Loading branch information
nrk committed Oct 26, 2014
1 parent 61fb79b commit c35306a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Connection/AbstractConnection.php
Expand Up @@ -138,7 +138,6 @@ protected function createResource(callable $callback)
}

if (!$stream = @stream_socket_client($uri, $errno, $errstr, 0, $flags)) {
$this->disconnect();
$this->onError(new ConnectionException($this, trim($errstr), $errno));

return;
Expand Down

0 comments on commit c35306a

Please sign in to comment.