Bugfix use a singleton ServerProfileManager

This commit is contained in:
C.S
2016-06-18 13:38:58 +08:00
parent 78bb0b7d32
commit 94e065ea63
4 changed files with 9 additions and 8 deletions

View File

@ -147,7 +147,7 @@ func removeSSLocalConfFile() {
func SyncSSLocal() {
var changed: Bool = false
changed = changed || generateSSLocalLauchAgentPlist()
let mgr = ServerProfileManager()
let mgr = ServerProfileManager.instance
if mgr.activeProfileId != nil {
changed = changed || writeSSLocalConfFile((mgr.getActiveProfile()?.toJsonConfig())!)