From a3bd54e646eb1fcf508bcfcf54921b34fa74bea8 Mon Sep 17 00:00:00 2001
From: louthy
Date: Thu, 26 Jan 2017 16:22:02 +0000
Subject: [PATCH] Bug fix: Process.exists() exception
https://github.com/louthy/language-ext/issues/175
---
LanguageExt.Process/ActorSys/ActorDispatchGroup.cs | 4 ----
LanguageExt.Process/ActorSys/ActorDispatchJS.cs | 2 +-
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/LanguageExt.Process/ActorSys/ActorDispatchGroup.cs b/LanguageExt.Process/ActorSys/ActorDispatchGroup.cs
index 73c8d1fb6..da39ccbc3 100644
--- a/LanguageExt.Process/ActorSys/ActorDispatchGroup.cs
+++ b/LanguageExt.Process/ActorSys/ActorDispatchGroup.cs
@@ -15,10 +15,6 @@ public ActorDispatchGroup(IEnumerable group)
{
this.group = group.ToArray();
this.count = this.group.Length;
- if( this.group.Length == 0 )
- {
- throw new ArgumentException("No processes in group - usually this means there are offline services.");
- }
}
private IEnumerable GetWorkers() =>
diff --git a/LanguageExt.Process/ActorSys/ActorDispatchJS.cs b/LanguageExt.Process/ActorSys/ActorDispatchJS.cs
index 03b32823f..3f5a40dae 100644
--- a/LanguageExt.Process/ActorSys/ActorDispatchJS.cs
+++ b/LanguageExt.Process/ActorSys/ActorDispatchJS.cs
@@ -97,6 +97,6 @@ public Unit DispatchUnWatch(ProcessId pid)
false;
public bool Exists =>
- Prelude.raise(new NotSupportedException());
+ true;
}
}