From 77f48f684e7af3b2daf6a5d7100733cfda1dfc89 Mon Sep 17 00:00:00 2001 From: bobkova Date: Wed, 12 Oct 2016 13:21:15 +0300 Subject: [PATCH] removed logging for StreamResetException --- .../ru/touchin/templates/googlejson/GoogleJsonFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/ru/touchin/templates/googlejson/GoogleJsonFactory.java b/src/main/java/ru/touchin/templates/googlejson/GoogleJsonFactory.java index 824d498..92b6787 100644 --- a/src/main/java/ru/touchin/templates/googlejson/GoogleJsonFactory.java +++ b/src/main/java/ru/touchin/templates/googlejson/GoogleJsonFactory.java @@ -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;