Moved mFinished/is_finished() from LegacyPolledResponder to Responder.
Slightly more robust, adds one boolean to all responders, 99% of which don't need that though, and an extra call redirection, but well... We might need it this way when I add the possibility to abort a transfer.
This commit is contained in:
@@ -258,6 +258,8 @@ void BlockingResponder::completedRaw(U32, std::string const&, LLChannelDescripto
|
||||
mBody << istr;
|
||||
}
|
||||
}
|
||||
// Normally mFinished is set immediately after returning from this function,
|
||||
// but we do it here, because we need to set it before calling mSignal.signal().
|
||||
mSignal.lock();
|
||||
mFinished = true;
|
||||
mSignal.unlock();
|
||||
|
||||
Reference in New Issue
Block a user