Prevent spurious wakeup of RequestManager
This commit is contained in:
parent
d76069a700
commit
e91a8fd054
@ -12,7 +12,7 @@ namespace http
|
||||
|
||||
Request::~Request()
|
||||
{
|
||||
if (handle->state != RequestHandle::ready)
|
||||
if (handle->state == RequestHandle::running)
|
||||
{
|
||||
RequestManager::Ref().UnregisterRequest(*this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user