Skip to content

Commit

Permalink
fix: fix disabled state in api for non-general commands
Browse files Browse the repository at this point in the history
when network is not available.
  • Loading branch information
revam committed Nov 3, 2023
1 parent 5c944f5 commit b2b2544
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Shoko.Server/Repositories/Direct/CommandRequestRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ private int[] GetExecutableCommands(IEnumerable<int> commands, IConnectivityServ

public bool CheckIfCommandRequestIsDisabled(CommandRequestType type, IConnectivityService connectivityService)
{
if (!CommandTypesGeneral.Contains((int)type))
return false;

var udpBanned = connectivityService.IsAniDBUdpBanned;
var networkUnavailable = !connectivityService.NetworkAvailability.HasInternet();
var udpUnavailable = !connectivityService.IsAniDBUdpReachable;
Expand Down

0 comments on commit b2b2544

Please sign in to comment.