xmpp-vala: catch TLS errors during read()

This commit is contained in:
Marvin W 2017-08-17 19:42:25 +02:00
parent e44cad1b92
commit f78818abbe
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -54,6 +54,8 @@ public class StanzaReader {
buffer_pos = 0; buffer_pos = 0;
} catch (GLib.IOError e) { } catch (GLib.IOError e) {
throw new XmlError.IO_ERROR("IOError in GLib: %s".printf(e.message)); 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));
} }
} }