Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e85a756

Browse files
author
Michelle Tilley
committed
Allow workerManager to be force-reset
1 parent bd4c3dc commit e85a756

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/worker-manager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export default class WorkerManager {
1818
return this.instance;
1919
}
2020

21-
static reset() {
22-
if (this.instance) { this.instance.destroy(); }
21+
static reset(force) {
22+
if (this.instance) { this.instance.destroy(force); }
2323
this.instance = null;
2424
}
2525

0 commit comments

Comments
 (0)