1
0
mirror of synced 2024-11-16 06:43: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 476f69c7fe
commit d820baecf7

View File

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