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