Skip to content

Commit

Permalink
director: Fix delayed request count in ps title after request timeouts
Browse files Browse the repository at this point in the history
The timeouts weren't shrinking the delayed request count. This didn't cause
any other problems.
  • Loading branch information
sirainen authored and cmouse committed Nov 27, 2017
1 parent e4e8301 commit 769f5c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/director/director-request.c
Expand Up @@ -112,6 +112,9 @@ static void director_request_timeout(struct director *dir)
user->weak = FALSE;
}

i_assert(dir->requests_delayed_count > 0);
dir->requests_delayed_count--;

array_delete(&dir->pending_requests, 0, 1);
T_BEGIN {
request->callback(NULL, NULL, errormsg, request->context);
Expand Down

0 comments on commit 769f5c2

Please sign in to comment.