Skip to content

Commit 24d1e63

Browse files
author
Aries Hoo
authored
Update FastRetryWhen.java
1 parent c468501 commit 24d1e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/aries/library/fast/retrofit/FastRetryWhen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public Observable<?> apply(Observable<? extends Throwable> observable) {
8888
@Override
8989
public ObservableSource<?> apply(Throwable throwable) {
9090
//未连接网络直接返回异常
91-
if (NetworkUtil.isConnected(mContext)) {
91+
if (!NetworkUtil.isConnected(mContext)) {
9292
return Observable.error(throwable);
9393
}
9494
//仅仅对连接失败相关错误进行重试

0 commit comments

Comments
 (0)