comparison Framework/Loaders/LoaderStateMachine.cpp @ 1134:87fbeb823375 broker

allocating messages from oracle commands on the stack
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Nov 2019 15:16:45 +0100
parents 8e3763d1736a
children a0a33e5ea5bb
comparison
equal deleted inserted replaced
1133:0e3a3be313fd 1134:87fbeb823375
142 } 142 }
143 else { 143 else {
144 activeCommands_--; 144 activeCommands_--;
145 try 145 try
146 { 146 {
147 dynamic_cast<State&>(message.GetOrigin().GetPayload()).Handle(message); 147 dynamic_cast<State&>(message.GetCommand().GetPayload()).Handle(message);
148 Step(); 148 Step();
149 } 149 }
150 catch (Orthanc::OrthancException& e) 150 catch (Orthanc::OrthancException& e)
151 { 151 {
152 LOG(ERROR) << "Error in the state machine, stopping all processing: " << 152 LOG(ERROR) << "Error in the state machine, stopping all processing: " <<