This commit is contained in:
Romain Neutron
2012-05-24 17:07:28 +02:00
parent 45422d01b4
commit af3b4271d3

View File

@@ -55,8 +55,9 @@ class module_console_schedulerStart extends Command
$scheduler->run();
} catch (\Exception $e) {
switch ($e->getCode()) {
case task_Scheduler::ERR_ALREADY_RUNNING: // 114 : aka EALREADY (Operation already in progress)
$exitCode = ERR_ALREADY_RUNNING;
// 114 : aka EALREADY (Operation already in progress)
case task_Scheduler::ERR_ALREADY_RUNNING:
$exitCode = task_Scheduler::ERR_ALREADY_RUNNING;
break;
default:
$exitCode = 1; // default exit code (error)