Ver Fonte

Мелкая поправка

Book Pauk há 6 anos atrás
pai
commit
9adbffc9e5
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      client/api/reader.js

+ 2 - 0
client/api/reader.js

@@ -53,7 +53,9 @@ class Reader {
                 throw new Error('Слишком долгое время ожидания');
             }
             //проверка воркера
+            const prevProgress = response.data.progress;
             response = await workerApi.post('/get-state', {workerId});
+            i = (prevProgress != response.data.progress ? 1 : i);
         }
     }
 }