Changeset 2498

Show
Ignore:
Timestamp:
07/25/07 16:50:11
Author:
pvanhoof
Message:

Locking problems in the POP code

Files:

Legend:

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

    r2497 r2498  
    141141 
    142142        CamelPOP3Store *store = CAMEL_POP3_STORE (service); 
    143          
     143 
     144        g_static_rec_mutex_lock (store->eng_lock); 
     145 
     146        if (store->engine == NULL) { 
     147                g_static_rec_mutex_lock (store->eng_lock); 
     148                return TRUE; 
     149        } 
     150 
    144151        if (clean) { 
    145152                CamelPOP3Command *pc; 
     
    151158        } 
    152159 
    153         g_static_rec_mutex_lock (store->eng_lock); 
    154160        camel_object_unref((CamelObject *)store->engine); 
    155161        store->engine = NULL;