Browse Source

devicemanager-proxy: check if there is a device associated with given path

bboozzoo/dbus-support-interfaces
Maciek Borzecki 8 years ago
parent
commit
3c3687ad59
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/mconnect/devicemanager-proxy.vala

+ 5
- 0
src/mconnect/devicemanager-proxy.vala View File

@ -59,6 +59,11 @@ class DeviceManagerDBusProxy : Object
var dev_proxy = this.devices.@get(path); var dev_proxy = this.devices.@get(path);
if (dev_proxy == null) {
warning("no device under path %s", path);
return;
}
this.manager.allow_device(dev_proxy.device); this.manager.allow_device(dev_proxy.device);
} }


Loading…
Cancel
Save