aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-08-01 12:07:51 +0200
committerChristian Schneppe <christian@pix-art.de>2017-08-01 12:07:51 +0200
commitba4c7923d35931f43373ea088966b9c470585c8a (patch)
tree1392a80953f21cf2fe5f5e17dfa023f22001b083 /src/main/java
parentea1a9d898ee529fc94e0d0accf386cadb50e1b3e (diff)
catch runtime exceptions from minidns
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/utils/Resolver.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/Resolver.java b/src/main/java/de/pixart/messenger/utils/Resolver.java
index d8582dbbf..5a90cb30c 100644
--- a/src/main/java/de/pixart/messenger/utils/Resolver.java
+++ b/src/main/java/de/pixart/messenger/utils/Resolver.java
@@ -47,13 +47,13 @@ public class Resolver {
List<Result> results = new ArrayList<>();
try {
results.addAll(resolveSrv(domain, true));
- } catch (IOException e) {
- Log.d(Config.LOGTAG, Resolver.class.getSimpleName() + ": " + e.getMessage());
+ } catch (Throwable throwable) {
+ Log.d(Config.LOGTAG, Resolver.class.getSimpleName() + ": error resolving SRV record (direct TLS)", throwable);
}
try {
results.addAll(resolveSrv(domain, false));
- } catch (IOException e) {
- Log.d(Config.LOGTAG, Resolver.class.getSimpleName() + ": " + e.getMessage());
+ } catch (Throwable throwable) {
+ Log.d(Config.LOGTAG, Resolver.class.getSimpleName() + ": error resolving SRV record (STARTTLS)", throwable);
}
if (results.size() == 0) {
results.addAll(resolveNoSrvRecords(DNSName.from(domain), true));