Re-work thunks

This commit is contained in:
Jon Staab
2024-10-17 08:38:53 -07:00
parent f7e570d868
commit 0523951e5a
2 changed files with 78 additions and 74 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ export class ConnectionAuth {
}
waitIfPending = async ({timeout = 3000}: {timeout?: number} = {}) => {
if ([PendingSignature, PendingResponse].includes(this.status)) {
while ([PendingSignature, PendingResponse].includes(this.status)) {
await this.wait({timeout})
}
}