Ensure message results from synchronous jobs get properly passed on

nix
Owen Green 6 years ago
parent e136045834
commit 7d6a86dbf7

@ -291,7 +291,7 @@ public:
}
w->mClient.setSynchronous(w->mSynchronous);
w->mClient.enqueue(w->mParams);
w->mClient.process();
w->mResult = w->mClient.process();
}
/// Check result and report if bad
@ -301,6 +301,8 @@ public:
Result r;
ProcessState s = w->mClient.checkProgress(r);
if(w->mSynchronous) r = w->mResult;
if ((s == ProcessState::kDone || s == ProcessState::kDoneStillProcessing) ||
(w->mSynchronous &&
s == ProcessState::kNoProcess)) // I think this hinges on the fact that
@ -431,6 +433,7 @@ protected:
bool mQueueEnabled{false};
bool mCheckingForDone{false}; // only write to this from RT thread kthx
bool mCancelled{false};
Result mResult;
};
////////////////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save