Skip to content

Commit f886bbd

Browse files
committed
Remove retry delay when aborting.
1 parent a6982e7 commit f886bbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/powersync/lib/src/streaming_sync.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ class StreamingSyncImplementation {
117117
downloadError: e);
118118

119119
// On error, wait a little before retrying
120-
await Future.delayed(retryDelay);
120+
// When aborting, don't wait
121+
await Future.any([Future.delayed(retryDelay), _abort!.onAbort]);
121122
}
122123
}
123124
} finally {

0 commit comments

Comments
 (0)