Fix --offline option bug - missing condition check 49/71049/1 accepted/tizen/common/20160531.142002 accepted/tizen/common/20160602.140054 accepted/tizen/ivi/20160602.022812 accepted/tizen/ivi/20160602.022855 accepted/tizen/mobile/20160602.022953 accepted/tizen/mobile/20160602.023027 accepted/tizen/tv/20160602.022509 accepted/tizen/tv/20160602.022557 accepted/tizen/wearable/20160602.022703 accepted/tizen/wearable/20160602.022743 submit/tizen/20160531.021205 submit/tizen/20160531.024853
authorYunmi Ha <yunmi.ha@samsung.com>
Tue, 24 May 2016 01:48:56 +0000 (10:48 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Tue, 24 May 2016 01:54:07 +0000 (10:54 +0900)
There is missed 'offline' option checking when create user service.
If 'offline' mode was given, should be processed without any dbus connection.

Change-Id: Ibd36985cb5fe444a4e82c93e8b565ef64bdddb89
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
src/lib/gum-user-service.c

index d46c072..5baf52c 100755 (executable)
@@ -637,7 +637,10 @@ gum_user_service_create_sync (
 {
     GumUserService *self = GUM_USER_SERVICE (g_object_new (
             GUM_TYPE_USER_SERVICE, "offline", offline, NULL));
-    _service_dbus_proxy_callback (self);
+
+    if (FALSE == offline)
+        _service_dbus_proxy_callback (self);
+
     return self;
 }