fix crash from last commit (OnResponseFailed needs to check if it is a valid listener)

This commit is contained in:
jacob1 2015-08-29 15:20:50 -04:00
parent 9f9fef6cad
commit 4cc753edc1

View File

@ -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);
} }