- Migrate to xjasonlyu/tun2socks

- Fix Starting Controller misc UI block
- Fix didn't stop Controller when starting Controller
This commit is contained in:
ChsBuffer
2021-11-10 21:51:37 +08:00
parent 066e33b4d3
commit 79c4a9d203
19 changed files with 210 additions and 207 deletions

View File

@@ -102,7 +102,11 @@ namespace Netch.Controllers
if (Lock.CurrentCount == 0)
{
(await Lock.EnterAsync()).Dispose();
return;
if (ServerController == null && ModeController == null)
// stopped
return;
// else begin stop
}
using var _ = await Lock.EnterAsync();