connect: remove redundant condition in shutdown start

Pointed out by CodeSonar

Closes #19079
This commit is contained in:
Daniel Stenberg 2025-10-16 08:32:57 +02:00
parent f8cd64e3ab
commit 71d5525113
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -171,7 +171,7 @@ void Curl_shutdown_start(struct Curl_easy *data, int sockindex,
((data->set.shutdowntimeout > 0) ?
data->set.shutdowntimeout : DEFAULT_SHUTDOWN_TIMEOUT_MS);
/* Set a timer, unless we operate on the admin handle */
if(data->mid && (conn->shutdown.timeout_ms > 0))
if(data->mid)
Curl_expire_ex(data, nowp, conn->shutdown.timeout_ms,
EXPIRE_SHUTDOWN);
}