2007-08-28 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Tue, 28 Aug 2007 14:55:13 +0000 (14:55 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Tue, 28 Aug 2007 14:55:13 +0000 (14:55 +0000)
* src/maemo/modest-platform.c: (modest_platform_connect_and_wait):
Added a sleep(1) in case it helps with bug #66769.

pmo-trunk-r3113

ChangeLog2
src/maemo/modest-platform.c

index 6f95f35..e5e4104 100644 (file)
@@ -1,5 +1,10 @@
 2007-08-28  Murray Cumming  <murrayc@murrayc.com>
 
+       * src/maemo/modest-platform.c: (modest_platform_connect_and_wait):
+       Added a sleep(1) in case it helps with bug #66769.
+
+2007-08-28  Murray Cumming  <murrayc@murrayc.com>
+
        * src/modest-search.c: (on_timeout_check_account_is_online),
        (check_and_wait_for_account_is_online):
        It is OK for local-folder and mmc accounts to be used when they 
index dc32449..5c89093 100644 (file)
@@ -1149,10 +1149,15 @@ gboolean modest_platform_connect_and_wait (GtkWindow *parent_window, TnyAccount
 
        g_slice_free (UtilIdleData, data);
 
-       gboolean result = tny_device_is_online (device);
+       const gboolean result = tny_device_is_online (device);
 
-       if (result)
+       if (result) {
+               /* Sleep for a moment because libconic seems to report a new connection
+                * before that connection is actually usable.
+                * See projects.maemo.org bug NB#66769. */ 
+               sleep (1); 
                set_account_to_online (account);
+       }
 
        return result;
 }