*
* @var int
*/
- protected $sec;
+ protected $sec = 0;
/**
* Length of time to poll for stream activity (microseconds)
*
* @var int
*/
- protected $usec;
+ protected $usec = 200000;
/**
* Length of time to wait between ticks.
}
}
- if (isset($this->sec) && isset($this->usec)) {
+ if (!isset($this->sec) && !isset($this->usec)) {
throw new Phergie_Process_Exception(
'One of the processor options "sec" or "usec" must be specified'
);
if ($event = $this->driver->getEvent()) {
$this->ui->onEvent($event, $connection);
$this->plugins->setEvent($event);
-
- if (!$this->plugins->preEvent()) {
- continue;
- }
-
+ $this->plugins->preEvent();
$this->plugins->{'on' . ucfirst($event->getType())}();
}