eliminate async race condition from prompts by not nulling input/callback, prevents erroring when sending messages fast

This commit is contained in:
Cynthia Foxwell 2022-09-04 10:44:33 -06:00
parent 1b86352f69
commit 145a163e53

View file

@ -14,9 +14,6 @@ async function finalizePrompt() {
const input = comcord.state.promptInput.trim(); const input = comcord.state.promptInput.trim();
await comcord.state.promptCallback(input); await comcord.state.promptCallback(input);
comcord.state.promptInput = null;
comcord.state.promptCallback = null;
} }
module.exports = { module.exports = {