Skip to content

Commit

Permalink
unit tests for py socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Guigand authored and cboden committed Apr 13, 2014
1 parent a9cfa5d commit b2f58f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function handleData($stream)
// Socket is raw, not using fread as it's interceptable by filters
// See issues #192, #209, and #240
$data = stream_socket_recvfrom($stream, $this->bufferSize);
if( '' != $data || false != $data ){
if( '' !== $data || false !== $data ){
$this->emit('data', array($data, $this));
}
if ('' === $data || false === $data || feof($stream)) {
Expand Down

0 comments on commit b2f58f2

Please sign in to comment.