mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 12:05: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();
|
mResolver.cancel();
|
||||||
mSocket.close();
|
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)
|
void HttpReq::start(const std::string& server, const std::string& path)
|
||||||
|
|
Loading…
Reference in a new issue