aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-08-17 19:42:25 +0200
committerMarvin W <git@larma.de>2017-08-17 19:49:33 +0200
commitf78818abbee52dc187812428d3eb6542853611a0 (patch)
tree1ba849d440e5ac62c2ccf799c4314299d684dce7
parente44cad1b9265e3cf0d0ad1a3ed202deafc470d14 (diff)
downloaddino-f78818abbee52dc187812428d3eb6542853611a0.tar.gz
dino-f78818abbee52dc187812428d3eb6542853611a0.zip
xmpp-vala: catch TLS errors during read()
-rw-r--r--xmpp-vala/src/core/stanza_reader.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmpp-vala/src/core/stanza_reader.vala b/xmpp-vala/src/core/stanza_reader.vala
index f4b900d1..0079dc38 100644
--- a/xmpp-vala/src/core/stanza_reader.vala
+++ b/xmpp-vala/src/core/stanza_reader.vala
@@ -54,6 +54,8 @@ public class StanzaReader {
buffer_pos = 0;
} catch (GLib.IOError e) {
throw new XmlError.IO_ERROR("IOError in GLib: %s".printf(e.message));
+ } catch (GLib.TlsError e) {
+ throw new XmlError.IO_ERROR("TlsError in GLib: %s".printf(e.message));
}
}