Skip to content

Commit

Permalink
fix crash from last commit (OnResponseFailed needs to check if it is …
Browse files Browse the repository at this point in the history
…a valid listener)
  • Loading branch information
jacob1 committed Aug 29, 2015
1 parent 9f9fef6 commit 4cc753e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/requestbroker/RequestBroker.cpp
Expand Up @@ -210,7 +210,7 @@ void RequestBroker::thumbnailQueueProcessTH()
resultStatus = r->Process(*this);
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);
req = activeRequests.erase(req);
}
Expand Down

0 comments on commit 4cc753e

Please sign in to comment.