Protect against re-entrance(#954)

This is a safety guard and should never be activated.
This commit is contained in:
Fischlurch 2014-10-14 03:46:12 +02:00
parent 3fb838a041
commit 4ef4f2bdc5

View file

@ -110,6 +110,13 @@ namespace play {
{
Lock sync(this);
string problemLog;
if (!isOperational())
{
WARN (play, "Attempt to OutputDirector::bringDown() -- "
"which it is not in running state. Invocation ignored. "
"This indicates an error in Lifecycle logic.");
return;
}
try
{
TODO ("actually bring down the output generation");