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

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;