Catch error properly when app update check fails (fixes #8019)

This commit is contained in:
arkon
2022-09-18 16:24:26 -04:00
parent 83871fc013
commit 7ec822503a
3 changed files with 12 additions and 12 deletions

View File

@ -37,9 +37,9 @@ fun Call.asObservable(): Observable<Response> {
subscriber.onNext(response)
subscriber.onCompleted()
}
} catch (error: Exception) {
} catch (e: Exception) {
if (!subscriber.isUnsubscribed) {
subscriber.onError(error)
subscriber.onError(e)
}
}
}