Skip to content

Commit

Permalink
Fix #18
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Mar 4, 2016
1 parent 856f184 commit 0da01b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Loop/Manager/Select/SelectIoManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ public function getPending()
*/
public function handle(array $active)
{
foreach ($active as $id => $resource) {
foreach ($active as $resource) {
$id = (int) $resource;
if (isset($this->sockets[$id], $this->pending[$id])) { // Event may have been removed from a previous call.

if (!$this->sockets[$id]->isPersistent()) {
unset($this->pending[$id]);
if (isset($this->timers[$id])) {
Expand Down

0 comments on commit 0da01b7

Please sign in to comment.