add check

This commit is contained in:
YFdyh000 2020-03-20 07:24:04 +08:00
parent a4a0b29250
commit be9bbcc2c7

View file

@ -652,7 +652,7 @@ namespace v2rayN.Forms
} }
private void Speedtest(string actionType) private void Speedtest(string actionType)
{ {
GetLvSelectedIndex(); if (GetLvSelectedIndex() < 0) return;
ClearTestResult(); ClearTestResult();
SpeedtestHandler statistics = new SpeedtestHandler(ref config, ref v2rayHandler, lvSelecteds, actionType, UpdateSpeedtestHandler); SpeedtestHandler statistics = new SpeedtestHandler(ref config, ref v2rayHandler, lvSelecteds, actionType, UpdateSpeedtestHandler);
} }