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:
Aleric Inglewood
2012-10-22 22:52:18 +02:00
parent daac25c343
commit 243db9a3a8
5 changed files with 34 additions and 20 deletions

View File

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