Browse Source

prevent null reference exception log

tags/2.5.3
icylogic 9 years ago
parent
commit
295beaf8ee
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      shadowsocks-csharp/Controller/Strategy/SimplyChooseByStatisticsStrategy.cs

+ 4
- 0
shadowsocks-csharp/Controller/Strategy/SimplyChooseByStatisticsStrategy.cs View File

@@ -93,6 +93,10 @@ namespace Shadowsocks.Controller.Strategy

private void ChooseNewServer(List<Server> servers)
{
if (statistics == null)
{
return;
}
try
{
var bestResult = (from server in servers


Loading…
Cancel
Save