loading polish

This commit is contained in:
Drew Ansbacher
2021-06-30 17:31:57 -06:00
committed by Aiden McClelland
parent 834de9ab54
commit 412c10a859
6 changed files with 90 additions and 51 deletions

View File

@@ -27,6 +27,8 @@ export class StateService {
}
async pollDataTransferProgress() {
await pauseFor(7000)
if (
this.dataTransferProgress?.totalBytes &&
this.dataTransferProgress.bytesTransfered === this.dataTransferProgress.totalBytes
@@ -40,7 +42,6 @@ export class StateService {
if (this.dataTransferProgress.totalBytes) {
this.dataProgress = this.dataTransferProgress.bytesTransfered / this.dataTransferProgress.totalBytes
}
await pauseFor(7000)
this.pollDataTransferProgress()
}
}