| @@ 38-44 (lines=7) @@ | ||
| 35 | } |
|
| 36 | ||
| 37 | // Say goodbye if the app did not shutdown properly |
|
| 38 | if (!TemporaryCronClass::$sent) { |
|
| 39 | if (OC::$CLI) { |
|
| 40 | echo 'Unexpected error!' . PHP_EOL; |
|
| 41 | } else { |
|
| 42 | OC_JSON::error(array('data' => array('message' => 'Unexpected error!'))); |
|
| 43 | } |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| 47 | try { |
|
| @@ 89-93 (lines=5) @@ | ||
| 86 | $appmode = OC_BackgroundJob::getExecutionType(); |
|
| 87 | if ($appmode == 'none') { |
|
| 88 | TemporaryCronClass::$sent = true; |
|
| 89 | if (OC::$CLI) { |
|
| 90 | echo 'Background Jobs are disabled!' . PHP_EOL; |
|
| 91 | } else { |
|
| 92 | OC_JSON::error(array('data' => array('message' => 'Background jobs disabled!'))); |
|
| 93 | } |
|
| 94 | exit(1); |
|
| 95 | } |
|
| 96 | ||