fix crash from last commit (OnResponseFailed needs to check if it is a valid listener)
This commit is contained in:
parent
9f9fef6cad
commit
4cc753edc1
@ -210,7 +210,7 @@ void RequestBroker::thumbnailQueueProcessTH()
|
|||||||
resultStatus = r->Process(*this);
|
resultStatus = r->Process(*this);
|
||||||
if(resultStatus == Duplicate || resultStatus == Failed || resultStatus == Finished)
|
if(resultStatus == Duplicate || resultStatus == Failed || resultStatus == Finished)
|
||||||
{
|
{
|
||||||
if (resultStatus == Duplicate || resultStatus == Failed)
|
if ((resultStatus == Duplicate || resultStatus == Failed) && CheckRequestListener(r->Listener))
|
||||||
r->Listener.second->OnResponseFailed(r->Identifier);
|
r->Listener.second->OnResponseFailed(r->Identifier);
|
||||||
req = activeRequests.erase(req);
|
req = activeRequests.erase(req);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user