From dd1bc95c99c0e3a2d7d2a9c9491b03224a534340 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jan 2015 18:56:01 +0100 Subject: [PATCH] devicechannel: explicitly call begin on async methods --- src/devicechannel.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devicechannel.vala b/src/devicechannel.vala index 23f9a2c..40296ee 100644 --- a/src/devicechannel.vala +++ b/src/devicechannel.vala @@ -76,7 +76,7 @@ class DeviceChannel : Object { SocketSource source = sock.create_source(IOCondition.IN | IOCondition.ERR | IOCondition.HUP); source.set_callback((src, cond) => { - this._io_ready(); + this._io_ready.begin(); return true; }); // attach source @@ -143,7 +143,7 @@ class DeviceChannel : Object { debug("check for IO"); try { debug("try read"); - this.receive(); + this.receive.begin(); } catch (Error e) { critical("error occurred: %d: %s", e.code, e.message);