2dust
2024-11-02 15:02:30 +08:00
parent c339aa349c
commit 201cfaa922
3 changed files with 10 additions and 7 deletions
@@ -1,7 +1,7 @@
using System.Diagnostics;
using ReactiveUI;
using System.Diagnostics;
using System.Net;
using System.Net.Sockets;
namespace ServiceLib.Services
{
public class SpeedtestService
@@ -80,10 +80,12 @@ namespace ServiceLib.Services
Task.Run(RunMixedtestAsync);
break;
}
MessageBus.Current.Listen<string>(EMsgCommand.StopSpeedtest.ToString()).Subscribe(ExitLoop);
}
public void ExitLoop()
private void ExitLoop(string x)
{
if(_exitLoop) return;
_exitLoop = true;
UpdateFunc("", ResUI.SpeedtestingStop);
}