mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Fix incorrect value being sent to dishworker
This commit is contained in:
parent
5731f5c75c
commit
370cae3c8d
@ -65,6 +65,7 @@ class WorkerWaiter {
|
||||
setupDishWorker() {
|
||||
if (this.dishWorker.worker !== null) {
|
||||
this.dishWorker.worker.terminate();
|
||||
this.dishWorker.currentAction = "";
|
||||
}
|
||||
log.debug("Adding new DishWorker");
|
||||
|
||||
@ -72,7 +73,7 @@ class WorkerWaiter {
|
||||
this.dishWorker.worker.addEventListener("message", this.handleDishMessage.bind(this));
|
||||
|
||||
if (this.dishWorkerQueue.length > 0) {
|
||||
this.postDishMessage(this.dishWorkerQueue.splice(0, 1));
|
||||
this.postDishMessage(this.dishWorkerQueue.splice(0, 1)[0]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -646,7 +647,6 @@ class WorkerWaiter {
|
||||
this.callbacks[id] = callback;
|
||||
|
||||
if (this.dishWorker.worker === null) this.setupDishWorker();
|
||||
|
||||
this.postDishMessage({
|
||||
action: "getDishAs",
|
||||
data: {
|
||||
|
Loading…
Reference in New Issue
Block a user