Browse Source

device: dummy disconnected channel handler

bboozzoo/device-cache
Maciek Borzecki 10 years ago
parent
commit
2564995df4
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/device.vala

+ 6
- 0
src/device.vala View File

@ -127,6 +127,9 @@ class Device : Object {
_channel.connected.connect((c) => {
this.greet();
});
_channel.disconnected.connect((c) => {
this.handle_disconnect();
});
_channel.packet_received.connect((c, pkt) => {
this.packet_received(pkt);
});
@ -200,5 +203,8 @@ class Device : Object {
paired(is_paired);
}
private void handle_disconnect() {
// channel got disconnected
debug("channel disconnected");
}
}

Loading…
Cancel
Save