Skip to content

Commit d66b468

Browse files
authored
Merge pull request #20 from S-anasol/patch-1
Avoid curl exception
2 parents 2a4c870 + fa50a3d commit d66b468

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Http/Driver/CurlDriver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public function __destruct()
3434
{
3535
if (null !== self::$ch) {
3636
curl_close(self::$ch);
37+
self::$ch = null; // Nulling to avoid calling curl_close again
3738
}
3839
}
3940

0 commit comments

Comments
 (0)