From 240831d6e548fdc0240a2cb29e6f56997c785cfd Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 5 Feb 2024 01:55:53 -0700 Subject: [PATCH] Fix error --- component/video/camera.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/component/video/camera.tsx b/component/video/camera.tsx index 4d99d29..1923821 100644 --- a/component/video/camera.tsx +++ b/component/video/camera.tsx @@ -47,7 +47,9 @@ class StreamUploadManager { this.isUploading = true; const task = this.uploadQueue.shift(); try { - if (task) await task(); + if (task) { + await task(); + } } catch (error) { console.error("Error processing upload task", error); } finally {