From 426623c9f2d21b0afc5579a7340b871c363a43ad Mon Sep 17 00:00:00 2001 From: icylogic Date: Thu, 1 Oct 2015 00:02:38 +0800 Subject: [PATCH] always notify user that a choice is made --- shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs b/shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs index 9b2f7430..d3b5e26b 100644 --- a/shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs +++ b/shadowsocks-csharp/Controller/Strategy/StatisticsStrategy.cs @@ -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)