We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63b1513 commit 8a59ae4Copy full SHA for 8a59ae4
packages/platform-ios/src/crash-diagnostics.ts
@@ -336,7 +336,7 @@ export const waitForCrashArtifact = async ({
336
const deadline = Date.now() + CRASH_ARTIFACT_WAIT_TIMEOUT_MS;
337
let fallbackArtifact = getFallbackArtifact();
338
339
- do {
+ while (Date.now() < deadline) {
340
const artifacts = await collectCrashArtifacts(options);
341
342
for (const artifact of artifacts) {
@@ -362,5 +362,7 @@ export const waitForCrashArtifact = async ({
362
await new Promise((resolve) =>
363
setTimeout(resolve, CRASH_ARTIFACT_POLL_INTERVAL_MS),
364
);
365
- } while (true);
+ }
366
+
367
+ return getFallbackArtifact() ?? fallbackArtifact;
368
};
0 commit comments