diff options
author | Javier <dev.git@javispedro.com> | 2015-06-11 01:16:26 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-06-11 01:16:26 +0200 |
commit | 6cb50e66f3c196a2a4bcc95a419260d6b8c2461f (patch) | |
tree | 610963526dbd205500db145965309b1de2b18a97 /smartpenmanager.cc | |
parent | a69e97943539a8abc4d2762638c169dc19c88516 (diff) | |
download | scribiu-6cb50e66f3c196a2a4bcc95a419260d6b8c2461f.tar.gz scribiu-6cb50e66f3c196a2a4bcc95a419260d6b8c2461f.zip |
experiment with audio/paperreplay data
Diffstat (limited to 'smartpenmanager.cc')
-rw-r--r-- | smartpenmanager.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/smartpenmanager.cc b/smartpenmanager.cc index d560b5b..ad6416b 100644 --- a/smartpenmanager.cc +++ b/smartpenmanager.cc @@ -42,7 +42,10 @@ void SmartpenManager::handleMonitorActivity() { qDebug() << "udev activity"; udev_device *dev = udev_monitor_receive_device(_monitor); - udev_device_unref(dev); + if (dev) { + processDevice(dev); + udev_device_unref(dev); + } } void SmartpenManager::handleSyncerFinished() |