Permalink
Browse files

fix crash from last commit (OnResponseFailed needs to check if it is …

…a valid listener)
  • Loading branch information...
jacob1 committed Aug 29, 2015
1 parent 9f9fef6 commit 4cc753edc1772a43dbd97731ac71edbdfbc55edd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client/requestbroker/RequestBroker.cpp
@@ -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);
}

0 comments on commit 4cc753e

Please sign in to comment.