Skip to content

Commit 1383266

Browse files
committed
One more exception type is going to be considered a network error
1 parent 7458035 commit 1383266

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/com/github/yeriomin/yalpstore/GoogleApiAsyncTask.java

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import java.net.UnknownHostException;
1717

1818
import javax.net.ssl.SSLHandshakeException;
19+
import javax.net.ssl.SSLPeerUnverifiedException;
1920

2021
abstract class GoogleApiAsyncTask extends AsyncTask<String, Void, Throwable> {
2122

@@ -123,6 +124,7 @@ protected void processAuthException(AuthException e) {
123124
static public boolean noNetwork(Throwable e) {
124125
return e instanceof UnknownHostException
125126
|| e instanceof SSLHandshakeException
127+
|| e instanceof SSLPeerUnverifiedException
126128
|| e instanceof ConnectException
127129
|| e instanceof SocketException
128130
|| e instanceof SocketTimeoutException;

0 commit comments

Comments
 (0)