Fix misleading comment

This commit is contained in:
Girish Ramakrishnan
2025-10-10 16:26:37 +02:00
parent f1aee1d9a4
commit 2fdb3668e2
2 changed files with 3 additions and 3 deletions

View File

@@ -19,9 +19,9 @@ class AsyncTask extends EventEmitter {
// subclasses implement this
}
async start() {
async start() { // should not throw!
debug(`start: ${this.name} started`);
const [error] = await safe(this._run(this.#abortController.signal)); // background
const [error] = await safe(this._run(this.#abortController.signal));
debug(`start: ${this.name} finished`);
this.emit('done', { errorMessage: error?.message || '' });
this.#abortController = null;

View File

@@ -197,5 +197,5 @@ async function getFilesystemUsage(req, res, next) {
res.end();
});
task.start();
task.start(); // background
}