Skip to content

Commit ba03b37

Browse files
test
1 parent e5d3aec commit ba03b37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/PowerSync/Kotlin/KotlinPowerSyncDatabaseImpl.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,11 @@ final class KotlinPowerSyncDatabaseImpl: PowerSyncDatabaseProtocol {
226226

227227
continuation.finish()
228228
} catch {
229-
continuation.finish(throwing: error)
229+
if error is CancellationError {
230+
continuation.finish()
231+
} else {
232+
continuation.finish(throwing: error)
233+
}
230234
}
231235
}
232236

0 commit comments

Comments
 (0)