From 38e374c3298ba69f686ccdc270e0c961ee27b24f Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Fri, 17 Sep 2021 14:37:09 -0400 Subject: [PATCH] Wait for readyness before sending msg to subproc --- utils/GunSmith/GunSmith.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/GunSmith/GunSmith.js b/utils/GunSmith/GunSmith.js index 1980991d..cc7316c3 100644 --- a/utils/GunSmith/GunSmith.js +++ b/utils/GunSmith/GunSmith.js @@ -387,7 +387,9 @@ function createReplica(path, afterMap = false) { path, type: 'load' } - currentGun.send(msg) + isReady().then(() => { + currentGun.send(msg) + }) } return this },