aboutsummaryrefslogtreecommitdiff
path: root/smartpenmanager.cc
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-11 01:16:26 +0200
committerJavier <dev.git@javispedro.com>2015-06-11 01:16:26 +0200
commit6cb50e66f3c196a2a4bcc95a419260d6b8c2461f (patch)
tree610963526dbd205500db145965309b1de2b18a97 /smartpenmanager.cc
parenta69e97943539a8abc4d2762638c169dc19c88516 (diff)
downloadscribiu-6cb50e66f3c196a2a4bcc95a419260d6b8c2461f.tar.gz
scribiu-6cb50e66f3c196a2a4bcc95a419260d6b8c2461f.zip
experiment with audio/paperreplay data
Diffstat (limited to 'smartpenmanager.cc')
-rw-r--r--smartpenmanager.cc5
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()