mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Don't try to write config file while quitting
This commit is contained in:
@@ -116,7 +116,9 @@ class AtomApplication extends EventEmitter {
|
||||
|
||||
this.configFile = new ConfigFile(configFilePath)
|
||||
this.config = new Config({
|
||||
saveCallback: settings => this.configFile.update(settings)
|
||||
saveCallback: settings => {
|
||||
if (!this.quitting) return this.configFile.update(settings)
|
||||
}
|
||||
})
|
||||
this.config.setSchema(null, {type: 'object', properties: _.clone(ConfigSchema)})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user