This commit is contained in:
2020-09-11 14:46:56 +08:00
parent 7991f8f866
commit 9433d631a9
+2 -4
View File
@@ -53,12 +53,10 @@ class Queue extends \Snowflake\Process\Process
/**
* @param Process $process
* @throws ComponentException
* @throws ConfigException
*/
public function onHandler(Process $process)
{
do {
Timer::tick(50, function () {
$redis = Snowflake::app()->getRedis();
try {
if ($this->shutdown) {
@@ -75,7 +73,7 @@ class Queue extends \Snowflake\Process\Process
} finally {
$redis->release();
}
} while (true);
});
}