This was buggy because the session stats were now increased twice. It could
have been possible to keep doing this and on UPDATE-SESSION simply replace
the old session stats, but that might still have caused the session stats to
temporarily go too high and then drop down.
} else {
if (!mail_stats_diff(&cmd->stats, &stats, &diff_stats,
&error)) {
- *error_r = t_strconcat("UPDATE-SESSION: stats shrank: ",
+ *error_r = t_strconcat("UPDATE-CMD: stats shrank: ",
error, NULL);
return -1;
}
cmd->id = 0;
mail_command_unref(&cmd);
}
- mail_session_refresh(session, &diff_stats);
+ mail_session_refresh(session, NULL);
return 0;
}