From 4ef4f2bdc5e84e9699f91a845302e9c560c0ac02 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Tue, 14 Oct 2014 03:46:12 +0200 Subject: [PATCH] Protect against re-entrance(#954) This is a safety guard and should never be activated. --- src/proc/play/output-director.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/proc/play/output-director.cpp b/src/proc/play/output-director.cpp index e74489850..f9fd3ea30 100644 --- a/src/proc/play/output-director.cpp +++ b/src/proc/play/output-director.cpp @@ -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");