Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebac641

Browse files
authored
Update Response.php
1 parent 820c4bd commit ebac641

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Engine/Protocols/Http/Response.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ public function destroy()
150150
{
151151
$this->_connection->httpRequest->destroy();
152152
}
153-
$this->_connection->httpResponse = $this->_connection->httpRequest = null;
153+
if(!empty($this->_connection))
154+
{
155+
$this->_connection->httpResponse = $this->_connection->httpRequest = null;
156+
}
154157
$this->_connection = null;
155158
$this->writable = false;
156159
}

0 commit comments

Comments
 (0)