From 0bdc7e2da8179a5cffd10d11f2339f547acc0a81 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Wed, 4 Jul 2007 12:51:40 +0000 Subject: [PATCH] 2007-07-04 Murray Cumming * src/modest-tny-account.c: (on_connection_status_changed): Commented out the call to modest_platform_connect_and_wait() because this seems to always hang, and I would like to know if this is the only thing that causes a hang when showing the connection dialog. It is not very useful anyway. pmo-trunk-r2562 --- ChangeLog2 | 8 ++++++++ src/modest-tny-account.c | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog2 b/ChangeLog2 index 02a1277..ff4b313 100644 --- a/ChangeLog2 +++ b/ChangeLog2 @@ -1,5 +1,13 @@ 2007-07-04 Murray Cumming + * src/modest-tny-account.c: (on_connection_status_changed): + Commented out the call to modest_platform_connect_and_wait() because this + seems to always hang, and I would like to know if this is the only thing + that causes a hang when showing the connection dialog. + It is not very useful anyway. + +2007-07-04 Murray Cumming + * src/maemo/modest-msg-view-window.c: (modest_msg_view_window_select_next_message): diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index aeb957f..33c8013 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -167,7 +167,12 @@ on_connection_status_changed (TnyAccount *account, TnyConnectionStatus status, g * because tinymail does not guarantee that this signal handler will be called * in the main thread. */ - modest_platform_connect_and_wait (NULL); + /* TODO: Commented out (and setting offline instead), because this causes hangs, probably related to + * our use of mainloops: + * modest_platform_connect_and_wait (NULL); + */ + TnyDevice *device = modest_runtime_get_device (); + tny_device_force_offline (device); } else if (status == TNY_CONNECTION_STATUS_CONNECTED_BROKEN) { printf ("DEBUG: %s: Connection broken. Forcing TnyDevice offline.\n", __FUNCTION__); -- 1.7.9.5