diff --git a/Core/Responses/HTTPFileResponse.m b/Core/Responses/HTTPFileResponse.m index cf73cd28..48f1b5af 100644 --- a/Core/Responses/HTTPFileResponse.m +++ b/Core/Responses/HTTPFileResponse.m @@ -222,7 +222,7 @@ - (void)dealloc { HTTPLogTrace(); - if (fileFD != NULL_FD) + if (fileFD != NULL_FD && fileFD != 0) { HTTPLogVerbose(@"%@[%p]: Close fd[%i]", THIS_FILE, self, fileFD);