diff --git a/src/device.vala b/src/device.vala index 79e76ff..7e84d39 100644 --- a/src/device.vala +++ b/src/device.vala @@ -137,7 +137,7 @@ class Device : Object { } public void deactivate() { - if (_channel == null) + if (_channel != null) _channel.close.begin(); _channel = null; }