no pipe on sub

This commit is contained in:
Drew Ansbacher
2022-01-25 20:02:36 -07:00
committed by Matt Hill
parent 4db9ccf27c
commit 0d8c5447cb

View File

@@ -246,15 +246,6 @@ export class AppComponent {
private watchUpdateProgress (): Subscription {
return this.patch.watch$('server-info', 'update-progress')
.pipe(
filter(progress => !!progress),
takeWhile(progress => progress.downloaded < progress.size),
finalize(async () => {
if (this.osUpdateProgress) this.osUpdateProgress.downloaded = this.osUpdateProgress.size
await pauseFor(200)
this.osUpdateProgress = undefined
}),
)
.subscribe(progress => {
this.osUpdateProgress = progress
})