The future used as a lock for context.acknowledge was the future returned by the call to interaction.acknowledge which could complete with an error if multiple calls to acknowledge were made.
This PR ensures that the lock is cleared and separate from the interaction.acknowledge call so that awaiting it never causes an exception to be thrown.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
Checklist:
[x] Ran dart analyze .
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
Description
The future used as a lock for
context.acknowledge
was the future returned by the call tointeraction.acknowledge
which could complete with an error if multiple calls to acknowledge were made.This PR ensures that the lock is cleared and separate from the
interaction.acknowledge
call so that awaiting it never causes an exception to be thrown.Type of change
Checklist:
dart analyze .