fix: ensure processChange has new varState values

This commit is contained in:
Alexis Tyler
2021-05-03 18:39:36 +09:30
parent 39f49d3e42
commit 911ae77011

View File

@@ -12,6 +12,9 @@ import { getKeyFile, sleep } from '../utils';
import { bus } from '../bus';
const processChange = async function () {
// Wait 100ms to ensure varState has settled with the new value
await sleep(100);
logger.debug(varState.data.regFile ? `Checking "${varState.data.regFile}" for the key file.` : 'No key file found.');
// Get key file