Browse Source

devicechannel: explicitly call begin on async methods

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
dd1bc95c99
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/devicechannel.vala

+ 2
- 2
src/devicechannel.vala View File

@ -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);


Loading…
Cancel
Save