Browse Source

always notify user that a choice is made

tags/3.0
icylogic 9 years ago
parent
commit
426623c9f2
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs

+ 1
- 4
shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs View File

@@ -88,10 +88,7 @@ namespace Shadowsocks.Controller.Strategy
}
).Aggregate((result1, result2) => result1.score > result2.score ? result1 : result2);

if (!_currentServer.Equals(bestResult.server)) //output when enabled
{
LogWhenEnabled($"Switch to server: {bestResult.server.FriendlyName()} by statistics: score {bestResult.score}");
}
LogWhenEnabled($"Switch to server: {bestResult.server.FriendlyName()} by statistics: score {bestResult.score}");
_currentServer = bestResult.server;
}
catch (Exception e)


Loading…
Cancel
Save