🐛 Save conf lock

This commit is contained in:
Daniel 2023-06-23 21:42:46 +08:00
parent abd61108d8
commit 6fa4245819
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -554,7 +554,7 @@ func (conf *AppConf) Save() {
}
confSaveLock.Lock()
confSaveLock.Unlock()
defer confSaveLock.Unlock()
newData, _ := gulu.JSON.MarshalIndentJSON(Conf, "", " ")
confPath := filepath.Join(util.ConfDir, "conf.json")