Fix error

This commit is contained in:
Ivan Malison 2024-02-05 01:55:53 -07:00
parent 394bff34e5
commit 240831d6e5

View File

@ -47,7 +47,9 @@ class StreamUploadManager<TCacheShape> {
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 {