Fix stop error when using socks5 proxy

This commit is contained in:
ChsBuffer
2021-10-19 17:36:14 +08:00
parent ecaab55934
commit 072f2d16e6

View File

@@ -115,8 +115,8 @@ namespace Netch.Controllers
var tasks = new[]
{
Task.Run(() => ServerController?.StopAsync()),
Task.Run(() => ModeController?.StopAsync())
ServerController?.StopAsync() ?? Task.CompletedTask,
ModeController?.StopAsync() ?? Task.CompletedTask
};
try