fix(core): do not update default state
1 files changed, 6 insertions(+), 0 deletions(-) M Core/NosSmooth.Core/Contracts/DefaultContract.cs
M Core/NosSmooth.Core/Contracts/DefaultContract.cs => Core/NosSmooth.Core/Contracts/DefaultContract.cs +6 -0
@@ 128,6 128,12 @@ public class DefaultContract<TData, TState, TError> : IContract<TData, TState> { return ContractUpdateResponse.NotInterested; } if (CurrentState.CompareTo(_defaultState) == 0) { // cannot update with default state. OnlyExecute has to be called first and update the state. return ContractUpdateResponse.NotInterested; } if (!_actions.ContainsKey(CurrentState)) { Unregister();