Prevent spurious wakeup of RequestManager

This commit is contained in:
iczero 2023-02-17 23:14:14 -05:00
parent d76069a700
commit e91a8fd054
No known key found for this signature in database
GPG Key ID: 74D35370F20AE8A0

View File

@ -12,7 +12,7 @@ namespace http
Request::~Request()
{
if (handle->state != RequestHandle::ready)
if (handle->state == RequestHandle::running)
{
RequestManager::Ref().UnregisterRequest(*this);
}