From 83170bdfcbb0dc4854703748b434326a6e64a154 Mon Sep 17 00:00:00 2001 From: Andreas Dirnberger Date: Tue, 29 Jun 2021 07:38:46 +0200 Subject: [PATCH] IsNobody for remote DeadLetters Remote Messages with a sender set to ActorRefs.NoSender should return true for IsNobody() --- src/core/Akka/Actor/ActorRef.Extensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Akka/Actor/ActorRef.Extensions.cs b/src/core/Akka/Actor/ActorRef.Extensions.cs index 2b4e1c1d914..e876d9744a4 100644 --- a/src/core/Akka/Actor/ActorRef.Extensions.cs +++ b/src/core/Akka/Actor/ActorRef.Extensions.cs @@ -23,7 +23,7 @@ public static class ActorRefExtensions /// true if the is valid; otherwise false. public static bool IsNobody(this IActorRef actorRef) { - return actorRef == null || actorRef is Nobody || actorRef is DeadLetterActorRef; + return actorRef == null || actorRef is Nobody || actorRef is DeadLetterActorRef || (actorRef.Path.Uid == 0 && actorRef.Path.Name == "deadLetters"); } ///