summaryrefslogtreecommitdiff
path: root/plugins/Irc/extlib/phergie/Phergie/Process/Async.php
diff options
context:
space:
mode:
authorLuke Fitzgerald <lw.fitzgerald@googlemail.com>2010-07-26 11:13:00 -0700
committerLuke Fitzgerald <lw.fitzgerald@googlemail.com>2010-07-26 11:13:00 -0700
commit742b302739bf31979b3c7f6b41136297264b86d3 (patch)
tree45efc9b6ba94e18db97d688366f2c7fd9cf99490 /plugins/Irc/extlib/phergie/Phergie/Process/Async.php
parent950685a4662fd91610fd2f176485aa34ea02bf96 (diff)
More Irc plugin work
Diffstat (limited to 'plugins/Irc/extlib/phergie/Phergie/Process/Async.php')
-rw-r--r--plugins/Irc/extlib/phergie/Phergie/Process/Async.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Irc/extlib/phergie/Phergie/Process/Async.php b/plugins/Irc/extlib/phergie/Phergie/Process/Async.php
index 4946152bb..e553ad5a8 100644
--- a/plugins/Irc/extlib/phergie/Phergie/Process/Async.php
+++ b/plugins/Irc/extlib/phergie/Phergie/Process/Async.php
@@ -37,14 +37,14 @@ class Phergie_Process_Async extends Phergie_Process_Abstract
*
* @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.
@@ -87,7 +87,7 @@ class Phergie_Process_Async extends Phergie_Process_Abstract
}
}
- 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'
);