Changeset 3827
- Timestamp:
- 11/26/08 09:52:50
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
releases/modest/diablo-pe2/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c
r3809 r3827 3918 3918 3919 3919 nwritten = camel_stream_printf (store->ostream, "DONE\r\n"); 3920 idle_debug ("(%d, 8) -> DONE\n", nwritten); 3921 3922 /* We read away everything the server sends 3923 * until the we see the untagged OK response */ 3924 3925 process_idle_untagged_response (store, folder, idle_resp, ex); 3920 /* if we fail to send done, then we shouldn't wait for done response. 3921 * It can happen, for example, if sending idle connection failed too */ 3922 if (nwritten > 0) { 3923 idle_debug ("(%d, 8) -> DONE\n", nwritten); 3924 3925 /* We read away everything the server sends 3926 * until the we see the untagged OK response */ 3927 3928 process_idle_untagged_response (store, folder, idle_resp, ex); 3929 store->idle_kill = TRUE; 3930 store->idle_cont = FALSE; 3931 } 3926 3932 } 3927 3933 releases/modest/diablo-pe2/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c
r3801 r3827 221 221 let_idle_die (CamelImapStore *store, gboolean connect_buz) 222 222 { 223 224 if (store->idle_thread != NULL && g_thread_self () == store->idle_thread) { 225 idle_debug ("Called let_idle_die from idle thread\n"); 226 return; 227 } 223 228 224 229 idle_debug ("let_idle_die starts\n"); … … 4103 4108 CamelFolderInfo *tree = NULL; 4104 4109 4105 g_static_rec_mutex_lock (imap_store->sum_lock);4106 4107 4110 if (top == NULL) 4108 4111 top = ""; 4109 4112 4110 4113 camel_imap_store_stop_idle_connect_lock (imap_store); 4114 4115 g_static_rec_mutex_lock (imap_store->sum_lock); 4111 4116 4112 4117 if (imap_store->going_online || !imap_store->got_online) … … 4209 4214 } 4210 4215 4216 fail: 4217 tree = get_folder_info_offline (store, top, flags, ex); 4218 4219 g_static_rec_mutex_unlock (imap_store->sum_lock); 4220 4211 4221 camel_imap_store_connect_unlock_start_idle (imap_store); 4212 4222 4213 tree = get_folder_info_offline(store, top, flags, ex);4214 4215 g_static_rec_mutex_unlock (imap_store->sum_lock);4216 return tree;4217 4218 fail:4219 camel_imap_store_connect_unlock_start_idle (imap_store);4220 4221 tree = get_folder_info_offline (store, top, flags, ex);4222 4223 g_static_rec_mutex_unlock (imap_store->sum_lock);4224 4223 return tree; 4225 4224 }
