mirror of
https://github.com/netchx/netch.git
synced 2026-03-26 18:49:46 +08:00
停止时同时结束加密代理和模式
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user