Skip to content

Commit

Permalink
suppress warnings from stream_select.
Browse files Browse the repository at this point in the history
refs #33
  • Loading branch information
indeyets committed Jul 23, 2014
1 parent deadc52 commit bd193a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AiP/Transport/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function loop()
// stream_socket_accept() doesn't block on some(?) of the ARM systems
// so, wrapping it into stream_select() which works always
// see https://bugs.php.net/bug.php?id=62816
if (1 === stream_select($read, $write, $except, null)) {
if (1 === @stream_select($read, $write, $except, null)) {
$conn = @stream_socket_accept($this->socket, 0);
}
}
Expand Down

0 comments on commit bd193a6

Please sign in to comment.