Skip to content

Commit

Permalink
it's now safe to do request_done() for QUEUED requests
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 5, 2025
1 parent b26d88e commit e692555
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -6519,14 +6519,6 @@ static int proxy_delete_cb(UNUSED void *ctx, void *data)
if (pthread_equal(request->child_pid, NO_SUCH_CHILD_PID) == 0) return 0;
#endif

/*
* If it's queued we can't delete it from the queue.
*
* Otherwise, it's OK to delete it. Even RUNNING, because
* that will get caught by the check above.
*/
if (request->child_state == REQUEST_QUEUED) return 0;

request->in_proxy_hash = false;

if (!request->in_request_hash) {
Expand Down

0 comments on commit e692555

Please sign in to comment.