technology: Offline mode is OFF by default
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 27 Apr 2012 13:01:49 +0000 (16:01 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Apr 2012 13:14:16 +0000 (15:14 +0200)
By defalt offline mode is OFF if settings file
is not found or OfflineMode entry is not found
in settings file.

src/technology.c

index c523182..26a4cc9 100644 (file)
@@ -394,12 +394,12 @@ static connman_bool_t connman_technology_load_offlinemode()
        /* If there is a error, we enable offlinemode */
        keyfile = __connman_storage_load_global();
        if (keyfile == NULL)
-               return TRUE;
+               return FALSE;
 
        offlinemode = g_key_file_get_boolean(keyfile, "global",
                                                "OfflineMode", &error);
        if (error != NULL) {
-               offlinemode = TRUE;
+               offlinemode = FALSE;
                g_clear_error(&error);
        }