Merge pull request #7 from TouchInstinct/fix/StreamResetException

removed logging for StreamResetException
This commit is contained in:
Gavriil 2016-10-12 13:27:54 +03:00 committed by GitHub
commit 0a3b6cdfd2
1 changed files with 3 additions and 1 deletions

View File

@ -37,6 +37,7 @@ import javax.net.ssl.SSLException;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import okhttp3.internal.framed.StreamResetException;
import retrofit2.Converter;
import retrofit2.Retrofit;
import ru.touchin.roboswag.core.log.Lc;
@ -82,7 +83,8 @@ public class GoogleJsonFactory extends Converter.Factory {
} catch (final IOException exception) {
if (!(exception instanceof SocketException)
&& !(exception instanceof InterruptedIOException)
&& !(exception instanceof SSLException)) {
&& !(exception instanceof SSLException)
&& !(exception instanceof StreamResetException)) {
Lc.assertion(exception);
}
throw exception;