implement removing server and saving

This commit is contained in:
clowwindy
2014-11-08 12:33:00 +08:00
parent ac1172c3ec
commit afa46b63b7
4 changed files with 63 additions and 26 deletions
@@ -53,7 +53,8 @@ namespace Shadowsocks.Controller
public void SaveConfig(Configuration newConfig)
{
Configuration.Save(newConfig);
config = newConfig;
// some logic in configuration updated the config when saving, we need to read it again
config = Configuration.Load();
local.Stop();
polipoRunner.Stop();