X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-account.c;h=33c80132da0bc0f1579a8f36c86f0852e5b76d8b;hp=aeb957f7ca9406fcd237a10658edee8f9713aa08;hb=0bdc7e2da8179a5cffd10d11f2339f547acc0a81;hpb=f199c37d367b79410dd33a9013159c1a85438c71 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__);