allow a frame to go from init state to close

without an intermediate working stage so it can be disposed after creation, but
without a prior initialization like CppunitTest_services does

Change-Id: If2679fd0ce3657e727e34cfb0752501fc82df936
This commit is contained in:
Caolán McNamara
2014-06-24 15:49:13 +01:00
parent a531676d6d
commit 1dac3254d5

View File

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