legalize InferiorRunningRequested => InferiorStopped transition

it is alread used for the error cases anyway.
one could introduce an intermediate state InferiorRunningFailed, but
this doesn't seem to bring any advantages.
This commit is contained in:
Oswald Buddenhagen
2009-10-20 14:05:42 +02:00
parent 5586a6daff
commit a8b39c54d7

View File

@@ -1576,7 +1576,7 @@ static bool isAllowedTransition(int from, int to)
return to == EngineShuttingDown; return to == EngineShuttingDown;
case InferiorRunningRequested: case InferiorRunningRequested:
return to == InferiorRunning; return to == InferiorRunning || to == InferiorStopped;
case InferiorRunning: case InferiorRunning:
return to == InferiorStopping; return to == InferiorStopping;