mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
no err when updating
This commit is contained in:
committed by
Aiden McClelland
parent
8c26e067ff
commit
8c16258159
@@ -39,12 +39,19 @@ export class ConnectionService {
|
||||
.pipe(
|
||||
distinctUntilChanged(),
|
||||
),
|
||||
// 3
|
||||
this.patch.watch$('server-info', 'update-progress')
|
||||
.pipe(
|
||||
distinctUntilChanged(),
|
||||
),
|
||||
])
|
||||
.subscribe(async ([network, patchConnection]) => {
|
||||
.subscribe(async ([network, patchConnection, progress]) => {
|
||||
if (patchConnection !== PatchConnection.Disconnected) {
|
||||
this.connectionFailure$.next(ConnectionFailure.None)
|
||||
} else if (!network) {
|
||||
this.connectionFailure$.next(ConnectionFailure.Network)
|
||||
} else if (!progress && progress.downloaded === progress.size) {
|
||||
this.connectionFailure$.next(ConnectionFailure.None)
|
||||
} else if (!this.configService.isTor()) {
|
||||
this.connectionFailure$.next(ConnectionFailure.Lan)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user