Skip to content

Commit

Permalink
#110 Query of (seq > 0) before mail_index_expunge
Browse files Browse the repository at this point in the history
  • Loading branch information
pburow committed Nov 20, 2017
1 parent 68be159 commit 1d796bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/storage-rbox/rbox-save.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ static void clean_up_failed(struct rbox_save_context *r_ctx) {
}
}
// clean up index
mail_index_expunge(r_ctx->trans, r_ctx->seq);
if (r_ctx->seq > 0) {
mail_index_expunge(r_ctx->trans, r_ctx->seq);
}
mail_cache_transaction_reset(r_ctx->ctx.transaction->cache_trans);

clean_up_mail_object_list(r_ctx, r_storage);
Expand Down

0 comments on commit 1d796bf

Please sign in to comment.