mirror of
https://github.com/etesync/android
synced 2024-12-23 07:08:16 +00:00
Revert "BaseManager: Consider SSLHandshakeExceptions as real issues."
This change was mostly flagging non-real issues, like connection reset
by peer. Revert for now and come up with an alternative solution.
This reverts commit d3ad17e0bb
.
This commit is contained in:
parent
37a1c06dbd
commit
1bbf00c6bd
@ -7,7 +7,6 @@ import java.io.ByteArrayOutputStream
|
||||
import java.io.IOException
|
||||
import java.net.HttpURLConnection
|
||||
import java.util.logging.Level
|
||||
import javax.net.ssl.SSLHandshakeException
|
||||
|
||||
abstract class BaseManager {
|
||||
|
||||
@ -22,10 +21,6 @@ abstract class BaseManager {
|
||||
response = client!!.newCall(request).execute()
|
||||
} catch (e: IOException) {
|
||||
Logger.log.log(Level.SEVERE, "Failed while connecting to server", e)
|
||||
if (e is SSLHandshakeException) {
|
||||
// We don't want to ignore SSLHandshake issues like we do normal IO exceptions
|
||||
throw e
|
||||
}
|
||||
throw Exceptions.ServiceUnavailableException("[" + e.javaClass.name + "] " + e.localizedMessage)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user