merge userdb.js into users.js
This commit is contained in:
@@ -228,10 +228,11 @@ async function stopTask(id) {
|
||||
}
|
||||
|
||||
async function stopAllTasks() {
|
||||
debug('stopTask: stopping all tasks');
|
||||
debug('stopAllTasks: stopping all tasks');
|
||||
|
||||
gTasks = {}; // this signals startTask() to not set completion status as "crashed"
|
||||
safe(shell.promises.sudo('stopTask', [ STOP_TASK_CMD, 'all' ], { cwd: paths.baseDir() })); // stop in background, do not wait
|
||||
const [error] = await safe(shell.promises.sudo('stopTask', [ STOP_TASK_CMD, 'all' ], { cwd: paths.baseDir() }));
|
||||
if (error) debug(`stopAllTasks: error stopping stasks: ${error.message}`);
|
||||
}
|
||||
|
||||
async function listByTypePaged(type, page, perPage) {
|
||||
|
||||
Reference in New Issue
Block a user