Skip to content

Commit

Permalink
BUGFIX: Empty ActorResult should not be null
Browse files Browse the repository at this point in the history
  • Loading branch information
iiwaasnet committed Nov 14, 2018
1 parent 1b0e6a7 commit e2e9365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Samples/Server/Actors/RevertStringActor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private async Task<IActorResult> StartProcess(IMessage message)

return new ActorResult(Message.Create(new EhlloMessage { Ehllo = hello.Greeting }));

return ActorResult.Empty;
return ActorResult.NoWait.Result;
}
}
}
2 changes: 1 addition & 1 deletion src/kino.Actors/ActorResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace kino.Actors
{
public class ActorResult : IActorResult
{
public static readonly IActorResult Empty = null;
internal static readonly IActorResult Empty = new ActorResult();
public static readonly Task<IActorResult> NoWait = Task.FromResult(Empty);

public ActorResult(params IMessage[] messages)
Expand Down

0 comments on commit e2e9365

Please sign in to comment.