From 69c1eafbe0098405272e0ed796b8eddea24192e3 Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 29 May 2025 14:29:41 +0100 Subject: [PATCH] fix: allow streaming on zero cost endpoint with 0 balance --- NostrStreamer/Services/StreamManager/StreamManagerFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NostrStreamer/Services/StreamManager/StreamManagerFactory.cs b/NostrStreamer/Services/StreamManager/StreamManagerFactory.cs index d39abae..e3e621c 100644 --- a/NostrStreamer/Services/StreamManager/StreamManagerFactory.cs +++ b/NostrStreamer/Services/StreamManager/StreamManagerFactory.cs @@ -40,7 +40,7 @@ public class StreamManagerFactory if (ep == default) throw new Exception("No endpoint found"); - if (user.Balance <= 0) + if (user.Balance <= 0 && ep.Cost > 0) { throw new LowBalanceException("Cannot start stream with empty balance"); }