Neeraj Gupta 3 lat temu
rodzic
commit
3e26efb30f
1 zmienionych plików z 2 dodań i 5 usunięć
  1. 2 5
      lib/utils/file_uploader.dart

+ 2 - 5
lib/utils/file_uploader.dart

@@ -239,11 +239,8 @@ class FileUploader {
           )
           )
           ?.value;
           ?.value;
 
 
-      if (pendingEntry == null) {
-        return;
-      }
-
-      if (pendingEntry.file.fileType == FileType.video &&
+      if (pendingEntry == null &&
+          pendingEntry.file.fileType == FileType.video &&
           _currentlyVideoUploading < kMaximumConcurrentVideoUploads) {
           _currentlyVideoUploading < kMaximumConcurrentVideoUploads) {
         // check if there's any non-video entry which can be queued for upload
         // check if there's any non-video entry which can be queued for upload
         pendingEntry = _queue.entries
         pendingEntry = _queue.entries