Code clean

This commit is contained in:
2dust
2023-04-14 20:49:36 +08:00
parent 165454dc57
commit bf6dcdf2bd
98 changed files with 715 additions and 538 deletions

View File

@@ -17,11 +17,10 @@ public class PacHandler
private static bool _isRunning;
private static bool _needRestart = true;
public static void Start(string configPath, int httpPort, int pacPort)
{
_needRestart = (configPath != _configPath || httpPort != _httpPort || pacPort != _pacPort || !_isRunning);
_configPath = configPath;
_httpPort = httpPort;
_pacPort = pacPort;
@@ -83,9 +82,7 @@ public class PacHandler
{
}
}
}, TaskCreationOptions.LongRunning);
}
public static void Stop()