shaneharter / PHP-Daemon

Build production-ready Daemons using PHP 5.3+. Build fault-tolerant applications without the boilerplate.
Other
768 stars 166 forks source link

Blocking mode - loop_interval not excepting NULL #58

Open grgilad opened 10 years ago

grgilad commented 10 years ago

In row 265 in Daemon.php the following seems to be mistaken: "if (is_numeric($this->loop_interval) == false)".

if loop_interval is NULL which is what is supposed to occur when working in blocking mode then this causes an exception. Removing this row works nicely so can you please check if this is indeed a typo or if I'm missing anything?

Thanks!