Skip to content

Commit

Permalink
fix unit failed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
steverhoades committed Aug 30, 2014
1 parent 35417eb commit acf44b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Stream extends EventEmitter implements DuplexStreamInterface
public function __construct($stream, LoopInterface $loop)
{
$this->stream = $stream;
if (get_resource_type($this->stream) === "stream") {
if (is_resource($this->stream) && get_resource_type($this->stream) === "stream") {
stream_set_blocking($this->stream, 0);
}

Expand Down

0 comments on commit acf44b4

Please sign in to comment.