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

(cherry picked from commit 7ec822503a)
This commit is contained in:
arkon
2022-09-18 16:24:26 -04:00
committed by Jobobby04
parent 6c3183af8d
commit 966bd31d61
3 changed files with 12 additions and 12 deletions
@@ -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)
}
}
}