prevent null reference exception log

This commit is contained in:
icylogic
2015-08-11 11:13:19 +08:00
parent b36b25af06
commit 295beaf8ee
@@ -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