From 56b5127200035f4d9c4f897babd515dc94ae5e40 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Tue, 24 Sep 2013 16:35:48 -0500 Subject: [PATCH] Fix HttpReq destructor freeze on Linux --- src/HttpReq.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HttpReq.cpp b/src/HttpReq.cpp index 4cd4a46ec..cfe1a44af 100644 --- a/src/HttpReq.cpp +++ b/src/HttpReq.cpp @@ -57,7 +57,8 @@ HttpReq::~HttpReq() { mResolver.cancel(); mSocket.close(); - while(status() == REQ_IN_PROGRESS); //otherwise you get really weird heap-allocation-related crashes + status(); //poll once + //while(status() == REQ_IN_PROGRESS); //otherwise you get really weird heap-allocation-related crashes } void HttpReq::start(const std::string& server, const std::string& path)