# HG changeset patch # User Damien Riegel <damien.rie...@gmail.com> # Date 1462477673 14400 # Thu May 05 15:47:53 2016 -0400 # Node ID d8f60c25b5a8bedddf7f86bd9bcc68ab8ae7afca # Parent 183218d2f244e219153d983e1f97c99190168d19 mx_fastclose_mailbox: call close callback first
This commit simply changes the order of some operations. Now, the close callback is called before mutt_buffy_setnotified. diff -r 183218d2f244 -r d8f60c25b5a8 mx.c --- a/mx.c Thu May 05 14:41:21 2016 -0400 +++ b/mx.c Thu May 05 15:47:53 2016 -0400 @@ -783,13 +783,13 @@ if(!ctx) return; + if (ctx->mx_ops) + ctx->mx_ops->close (ctx); + /* never announce that a mailbox we've just left has new mail. #3290 * XXX: really belongs in mx_close_mailbox, but this is a nice hook point */ mutt_buffy_setnotified(ctx->path); - if (ctx->mx_ops) - ctx->mx_ops->close (ctx); - if (ctx->subj_hash) hash_destroy (&ctx->subj_hash, NULL); if (ctx->id_hash)