Show
Ignore:
Timestamp:
2007-04-10 16:07:53 (21 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Do not hold hcache open while mailbox is open - it can lead to lockups

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imap/message.c

    r5098 r5112  
    120120 
    121121#if USE_HCACHE 
     122  imap_hcache_open (idata); 
     123 
    122124  if (idata->hcache && !msgbegin) 
    123125  { 
     
    200202        if (h.data) 
    201203          imap_free_header_data ((void**) (void*) &h.data); 
     204        imap_hcache_close (idata); 
    202205        fclose (fp); 
    203206        return -1; 
     
    301304      if (h.data) 
    302305        imap_free_header_data ((void**) (void*) &h.data); 
     306#if USE_HCACHE 
     307      imap_hcache_close (idata); 
     308#endif 
    303309      fclose (fp); 
    304310      return -1; 
     
    330336    mutt_hcache_store_raw (idata->hcache, "/UIDNEXT", &idata->uidnext, 
    331337                           sizeof (idata->uidnext), imap_hcache_keylen); 
     338 
     339  imap_hcache_close (idata); 
    332340#endif /* USE_HCACHE */ 
    333341