Changeset 3716

Show
Ignore:
Timestamp:
07/02/08 22:34:09
Author:
jdapena
Message:

Fix backported from trunk r3715
* 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
  • releases/modest/diablo-pe2/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c

    r3710 r3716  
    41764176        { 
    41774177                g_static_rec_mutex_lock (store->idle_t_lock); 
    4178                 if (store->in_idle && store->idle_thread) { 
     4178                if (store->in_idle && store->idle_thread && (g_thread_self () != store->idle_thread)) { 
    41794179                        IdleResponse *idle_resp = NULL; 
    41804180                        store->idle_cont = FALSE; 
     
    42404240                        g_static_rec_mutex_lock (store->idle_t_lock); 
    42414241 
    4242                         if (!store->in_idle && store->idle_thread) { 
     4242                        if (!store->in_idle && store->idle_thread && (g_thread_self () != store->idle_thread)) { 
    42434243                                IdleResponse *idle_resp = NULL; 
    42444244