From f78818abbee52dc187812428d3eb6542853611a0 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 17 Aug 2017 19:42:25 +0200 Subject: [PATCH] xmpp-vala: catch TLS errors during read() --- xmpp-vala/src/core/stanza_reader.vala | 2 ++ 1 file changed, 2 insertions(+) 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)); } }