Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit a4dc16b

Browse files
chore: forgot to finish writing a comment
1 parent 9cd63ce commit a4dc16b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/job-manager.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ class JobManager {
105105
.on('data', this.receiveError.bind(this));
106106
});
107107

108-
let nullWorkerPromise = () => {
109-
this._workerPromise = null;
110-
};
108+
let nullWorkerPromise = () => this._workerPromise = null;
111109

112110
this._workerPromise = promise;
113111
this._workerPromise
@@ -119,7 +117,8 @@ class JobManager {
119117

120118
async suspend () {
121119
console.debug('Suspending worker');
122-
// To prevent async chaos, we should refrain from killing a worker that we're in the process of
120+
// To prevent async chaos, we should refrain from killing a worker that
121+
// we're in the process of creating.
123122
let promise = this._workerPromise || Promise.resolve();
124123
this._killingWorkerPromise = promise.then(() => {
125124
let worker = this.worker;

0 commit comments

Comments
 (0)