Skip to content

Commit

Permalink
Update Response.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Sep 2, 2018
1 parent 820c4bd commit ebac641
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Engine/Protocols/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ public function destroy()
{
$this->_connection->httpRequest->destroy();
}
$this->_connection->httpResponse = $this->_connection->httpRequest = null;
if(!empty($this->_connection))
{
$this->_connection->httpResponse = $this->_connection->httpRequest = null;
}
$this->_connection = null;
$this->writable = false;
}
Expand Down

0 comments on commit ebac641

Please sign in to comment.