Changeset 1999

Show
Ignore:
Timestamp:
05/17/07 15:03:18
Author:
pvanhoof
Message:

Small fixo

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c

    r1955 r1999  
    164164        if (store->current_folder && CAMEL_IS_IMAP_FOLDER (store->current_folder)) 
    165165                camel_imap_folder_stop_idle (store->current_folder); 
     166        else { 
     167                g_static_rec_mutex_lock (store->idle_prefix_lock); 
     168                if (store->idle_prefix)  
     169                { 
     170                        int nwritten=0; 
     171                        idle_debug ("Sending DONE in camel_imap_store_stop_idle (no current folder?)\n"); 
     172                        CAMEL_SERVICE_REC_LOCK (store, connect_lock); 
     173                        nwritten = camel_stream_printf (store->ostream, "DONE\r\n"); 
     174                        CAMEL_SERVICE_REC_UNLOCK (store, connect_lock); 
     175                        g_free (store->idle_prefix); 
     176                        store->idle_prefix = NULL; 
     177                } 
     178                g_static_rec_mutex_unlock (store->idle_prefix_lock); 
     179        } 
    166180} 
    167181