summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/source/fwi/threadhelp/transactionmanager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/fwi/threadhelp/transactionmanager.cxx b/framework/source/fwi/threadhelp/transactionmanager.cxx
index 20bcdd6c020d..3d001a871997 100644
--- a/framework/source/fwi/threadhelp/transactionmanager.cxx
+++ b/framework/source/fwi/threadhelp/transactionmanager.cxx
@@ -74,7 +74,7 @@ void TransactionManager::setWorkingMode( EWorkingMode eMode )
// Change working mode first!
if (
( m_eWorkingMode == E_INIT && eMode == E_WORK ) ||
- ( m_eWorkingMode == E_WORK && eMode == E_BEFORECLOSE ) ||
+ ( (m_eWorkingMode == E_WORK || m_eWorkingMode == E_INIT) && eMode == E_BEFORECLOSE ) ||
( m_eWorkingMode == E_BEFORECLOSE && eMode == E_CLOSE ) ||
( m_eWorkingMode == E_CLOSE && eMode == E_INIT )
)