Fix HttpReq destructor freeze on Linux

This commit is contained in:
Aloshi 2013-09-24 16:35:48 -05:00
parent 69ef41a49f
commit 56b5127200

View file

@ -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)