eliminate async race condition from prompts by not nulling input/callback, prevents erroring when sending messages fast
This commit is contained in:
parent
1b86352f69
commit
145a163e53
1 changed files with 0 additions and 3 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue