Changeset 3715

Show
Ignore:
Timestamp:
07/02/08 22:26:13
Author:
jdapena
Message:

* libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c:

        • Avoid joining idle_thread from itself causing a crash/lock.
Files:

Legend:

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

    r3705 r3715  
    42484248        { 
    42494249                g_static_rec_mutex_lock (store->idle_t_lock); 
    4250                 if (store->in_idle && store->idle_thread) { 
     4250                if (store->in_idle && store->idle_thread && (g_thread_self () != store->idle_thread)) { 
    42514251                        IdleResponse *idle_resp = NULL; 
    42524252                        store->idle_cont = FALSE; 
     
    43124312                        g_static_rec_mutex_lock (store->idle_t_lock); 
    43134313 
    4314                         if (!store->in_idle && store->idle_thread) { 
     4314                        if (!store->in_idle && store->idle_thread && (g_thread_self () != store->idle_thread)) { 
    43154315                                IdleResponse *idle_resp = NULL; 
    43164316