fix: allow streaming on zero cost endpoint with 0 balance
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user