mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Fix HttpReq destructor freeze on Linux
This commit is contained in:
parent
69ef41a49f
commit
56b5127200
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue