Fix #202 slow-network invite timeout handling #207

Merged
hodlbod merged 2 commits from priyanshu_bharti/flotilla:fix/issue-202-slow-network-invite-timeout into dev 2026-04-15 22:01:01 +00:00
Showing only changes of commit ae86b8e6b4 - Show all commits
+6 -11
View File
@@ -40,17 +40,12 @@
onMount(async () => {
try {
const [[event]] = await Promise.all([
Promise.race([
request({
relays: [url],
autoClose: true,
signal: AbortSignal.timeout(10000),
filters: [{kinds: [RELAY_INVITE]}],
}),
sleep(10000).then(() => {
throw new Error("Invite claim timed out")
}),
]),
request({
relays: [url],
autoClose: true,
signal: AbortSignal.timeout(10000),
filters: [{kinds: [RELAY_INVITE]}],
}),
sleep(2000),
])
2