system-controller: use AUL properly.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Fri, 19 Sep 2014 10:06:32 +0000 (13:06 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:17 +0000 (18:37 +0200)
Change-Id: I38e867d0c9b8aca3a75c6bcf5fd458554fb7291a

src/plugins/system-controller/application-tracker/application-tracker.c

index 170e3c0..c863f93 100644 (file)
@@ -248,14 +248,14 @@ int mrp_application_tracker_create()
         return -1;
     }
 
-    if (!aul_listen_app_launch_signal(aul_launch_signal, NULL) < 0) {
+    if (aul_listen_app_launch_signal(aul_launch_signal, NULL) < 0) {
         mrp_log_error("failed to listen to application launch signals");
         return -1;
     }
 
     /* read the existing applications to the database */
 
-    if (!aul_app_get_running_app_info(aul_iter_app_info, NULL) < 0) {
+    if (aul_app_get_running_app_info(aul_iter_app_info, NULL) < 0) {
         mrp_log_error("failed to query running applications");
         return -1;
     }