停止时同时结束加密代理和模式

This commit is contained in:
ChsBuffer
2020-07-18 16:56:52 +08:00
parent a319833bd5
commit 6fd3aa48a5

View File

@@ -72,7 +72,7 @@ namespace Netch.Controllers
if (PortHelper.PortInUse(Global.Settings.RedirectorTCPPort, PortType.TCP))
{
MessageBoxX.Show("RedirectorTCP"+i18N.Translate("port is in use."));
MessageBoxX.Show("RedirectorTCP" + i18N.Translate("port is in use."));
return false;
}
@@ -138,7 +138,7 @@ namespace Netch.Controllers
/// </summary>
public void Stop()
{
pEncryptedProxyController?.Stop();
Task.Run(() => pEncryptedProxyController?.Stop());
pModeController?.Stop();
}