We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4739f71 commit 4b3ae8bCopy full SHA for 4b3ae8b
packages/powersync/lib/src/abort_controller.dart
@@ -17,14 +17,18 @@ class AbortController {
17
/// Abort, and wait until aborting is complete.
18
Future<void> abort() async {
19
aborted = true;
20
- _abortRequested.complete();
+ if (!_abortRequested.isCompleted) {
21
+ _abortRequested.complete();
22
+ }
23
24
await _abortCompleter.future;
25
}
26
27
/// Signal that an abort has completed.
28
void completeAbort() {
- _abortCompleter.complete();
29
+ if (!_abortCompleter.isCompleted) {
30
+ _abortCompleter.complete();
31
32
33
34
/// Signal that an abort has failed.
0 commit comments