Fix errand change re. new setTimeout wrapper

This commit is contained in:
Raymond Hill 2023-04-11 10:33:21 -04:00
parent a5f735b585
commit 6f3b5df8ef
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const onWorkerMessage = function(e) {
};
const stopWorker = function() {
stopWorker.off();
workerTTLTimer.off();
if ( worker === null ) { return; }
worker.terminate();
worker = null;