yet another select() refinement

This commit is contained in:
Evan Prodromou 2009-07-09 12:49:37 -04:00
parent eccab87044
commit 031146f4c7

View File

@ -122,9 +122,12 @@ class StompQueueManager
if (in_array($stompsock, $read)) {
$this->_handleNotice($queue, $handler);
}
$handler->idle(QUEUE_HANDLER_HIT_IDLE);
} else { // timeout
$handler->idle(QUEUE_HANDLER_MISS_IDLE);
foreach ($handsocks as $sock) {
if (in_array($sock, $read)) {
$handler->idle(QUEUE_HANDLER_HIT_IDLE);
break;
}
}
}
}