e
This commit is contained in:
+2
-4
@@ -53,12 +53,10 @@ class Queue extends \Snowflake\Process\Process
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Process $process
|
* @param Process $process
|
||||||
* @throws ComponentException
|
|
||||||
* @throws ConfigException
|
|
||||||
*/
|
*/
|
||||||
public function onHandler(Process $process)
|
public function onHandler(Process $process)
|
||||||
{
|
{
|
||||||
do {
|
Timer::tick(50, function () {
|
||||||
$redis = Snowflake::app()->getRedis();
|
$redis = Snowflake::app()->getRedis();
|
||||||
try {
|
try {
|
||||||
if ($this->shutdown) {
|
if ($this->shutdown) {
|
||||||
@@ -75,7 +73,7 @@ class Queue extends \Snowflake\Process\Process
|
|||||||
} finally {
|
} finally {
|
||||||
$redis->release();
|
$redis->release();
|
||||||
}
|
}
|
||||||
} while (true);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user