1
0
mirror of synced 2024-11-22 09:13:51 +00:00

BUG FIX van David voor flows die direct eindigen

This commit is contained in:
Menno van Lavieren 2017-07-25 15:33:34 +02:00
parent a14b4378bc
commit e3496b0aaf

View File

@ -160,7 +160,8 @@ namespace Tapeti.Flow.Default
{ {
flowContext = new FlowContext flowContext = new FlowContext
{ {
MessageContext = context MessageContext = context,
FlowState = new FlowState()
}; };
if (storeState) if (storeState)
@ -182,7 +183,7 @@ namespace Tapeti.Flow.Default
} }
} }
else else
flowContext = (FlowContext) flowContextItem; flowContext = (FlowContext)flowContextItem;
try try
@ -200,7 +201,7 @@ namespace Tapeti.Flow.Default
if (storeState) if (storeState)
await flowContext.EnsureStored(); await flowContext.EnsureStored();
else else if (flowContext.FlowStateLock != null)
await flowContext.FlowStateLock.DeleteFlowState(); await flowContext.FlowStateLock.DeleteFlowState();
} }