From 1bb75f40d26ad20381a200e09eaa9f519cffe398 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sun, 22 Dec 2019 19:28:40 +0100 Subject: Add timing to logs, fix issue of silently ignored I/O errors --- xmpp-vala/src/core/stanza_writer.vala | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'xmpp-vala/src/core/stanza_writer.vala') diff --git a/xmpp-vala/src/core/stanza_writer.vala b/xmpp-vala/src/core/stanza_writer.vala index aa94dec9..c2f589df 100644 --- a/xmpp-vala/src/core/stanza_writer.vala +++ b/xmpp-vala/src/core/stanza_writer.vala @@ -26,14 +26,15 @@ public class StanzaWriter { running = true; try { yield output.write_all_async(data, 0, null, null); + } catch (GLib.Error e) { + throw new XmlError.IO(@"IOError in GLib: $(e.message)"); + } finally { SourceFuncWrapper? sfw = queue.pop_head(); if (sfw != null) { sfw.sfun(); + } else { + running = false; } - } catch (GLib.Error e) { - throw new XmlError.IO(@"IOError in GLib: $(e.message)"); - } finally { - running = false; } } } -- cgit v1.2.3-54-g00ecf