Code clean
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
|
||||
namespace ServiceLib.Services
|
||||
{
|
||||
public class SpeedtestService
|
||||
@@ -85,7 +86,7 @@ namespace ServiceLib.Services
|
||||
|
||||
private void ExitLoop(string x)
|
||||
{
|
||||
if(_exitLoop) return;
|
||||
if (_exitLoop) return;
|
||||
_exitLoop = true;
|
||||
UpdateFunc("", ResUI.SpeedtestingStop);
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ namespace ServiceLib.ViewModels
|
||||
try
|
||||
{
|
||||
Locator.Current.GetService<StatusBarViewModel>()?.UpdateStatistics(update);
|
||||
if ((update.ProxyUp + update.ProxyDown) > 0 && DateTime.Now.Second % 3 == 0)
|
||||
if ((update.ProxyUp + update.ProxyDown) > 0 && DateTime.Now.Second % 9 == 0)
|
||||
{
|
||||
Locator.Current.GetService<ProfilesViewModel>()?.UpdateStatistics(update);
|
||||
}
|
||||
|
||||
@@ -686,7 +686,6 @@ namespace ServiceLib.ViewModels
|
||||
//ClearTestResult();
|
||||
|
||||
_ = new SpeedtestService(_config, lstSelecteds, actionType, UpdateSpeedtestHandler);
|
||||
|
||||
}
|
||||
|
||||
public void ServerSpeedtestStop()
|
||||
|
||||
Reference in New Issue
Block a user