From 2564995df43d2bfe806c2b34990fd56451165831 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jan 2015 00:22:56 +0100 Subject: [PATCH] device: dummy disconnected channel handler --- src/device.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/device.vala b/src/device.vala index 5e7167e..3843b37 100644 --- a/src/device.vala +++ b/src/device.vala @@ -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"); } } \ No newline at end of file