Skip to content

Commit

Permalink
Set RequestState directly rather than through SetRequestState
Browse files Browse the repository at this point in the history
References #8
  • Loading branch information
andreashuber-lawo committed Jan 6, 2016
1 parent 47d048c commit 60859a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Lawo.EmberPlusSharp/Model/Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ internal sealed override RequestState ReadContents(EmberReader reader, ElementTy
break;
case GlowNodeContents.IsOnline.OuterNumber:
this.IsOnline = reader.AssertAndReadContentsAsBoolean();
var newRequestState = this.RequestState & RequestState.Complete;
this.SetRequestState(false, ref newRequestState);
this.RequestState &= RequestState.Complete;
break;
case GlowNodeContents.SchemaIdentifiers.OuterNumber:
this.ReadSchemaIdentifiers(reader);
Expand Down
3 changes: 1 addition & 2 deletions Lawo.EmberPlusSharp/Model/ParameterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ internal override RequestState ReadContents(EmberReader reader, ElementType actu
this.IsOnline = reader.AssertAndReadContentsAsBoolean();
var send = (this.IsOnlineChangeStatus == IsOnlineChangeStatus.Changed) &&
this.IsOnline && this.StreamIdentifier.HasValue;
var newRequestState = this.RequestState & (send ? RequestState.None : RequestState.Complete);
this.SetRequestState(false, ref newRequestState);
this.RequestState &= send ? RequestState.None : RequestState.Complete;
break;
case GlowParameterContents.Formula.OuterNumber:
this.FormulaCore = reader.AssertAndReadContentsAsString();
Expand Down

0 comments on commit 60859a4

Please sign in to comment.