From 6eec6ec73d3b9b55802a33559e3031cd1ce81387 Mon Sep 17 00:00:00 2001 From: "Leon v. Tippelskirch" Date: Thu, 29 Jan 2015 12:06:58 +0100 Subject: [PATCH] Fix for issue #129 HTTPFileResponse crashes when init is not called --- Core/Responses/HTTPFileResponse.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);