aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client-web/source/user/local.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client-web/source/user/local.ts b/client-web/source/user/local.ts
index 053bc0a..bafa56f 100644
--- a/client-web/source/user/local.ts
+++ b/client-web/source/user/local.ts
@@ -68,7 +68,10 @@ export class LocalUser extends User {
const create = async (_e: HTMLElement, tp: Promise<TrackHandle>) => {
log("media", "awaiting track")
- const t = await tp
+ let t;
+ try { t = await tp }
+ catch (_) { log("media", "request failed") }
+ if (!t) return
log("media", "got track")
this.publish_track(t)
}