Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed the tests
  • Loading branch information
Nyholm committed Jan 6, 2018
commit 729926252f36ebac54f17b1ce3c68e98322fb7a1
4 changes: 3 additions & 1 deletion src/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public function __toString()
*/
public function __destruct()
{
$this->close();
if (is_resource($this->socket)) {
$this->close();
}
}

/**
Expand Down