Skip to content

Commit

Permalink
Fail nicely at startup if idle=n parameter is attempted to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and cmouse committed Nov 22, 2023
1 parent 5aeb310 commit 433eab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/imaptest.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ static void fix_probabilities(void)
{
unsigned int i;

if (states[STATE_IDLE].probability > 0)
i_fatal("idle isn't currently supported with stress testing");
if (conf.copy_dest == NULL)
states[STATE_COPY].probability = 0;
if (conf.checkpoint_interval == 0)
Expand Down

0 comments on commit 433eab1

Please sign in to comment.