fix: allow streaming on zero cost endpoint with 0 balance
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-05-29 14:29:41 +01:00
parent 0d9561eb84
commit 69c1eafbe0

View File

@ -40,7 +40,7 @@ public class StreamManagerFactory
if (ep == default) throw new Exception("No endpoint found"); 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"); throw new LowBalanceException("Cannot start stream with empty balance");
} }