Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #219 from lgeiger/dispose-config-observer
Browse files Browse the repository at this point in the history
Correctly dispose config observer when servers are closed
  • Loading branch information
damieng committed May 25, 2018
2 parents 1bdbd3c + 602302b commit 7b36abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auto-languageclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export default class AutoLanguageClient {

const configurationKey = this.getRootConfigurationKey();
if (configurationKey) {
this._disposable.add(
newServer.disposable.add(
atom.config.observe(configurationKey, (config) => {
const mappedConfig = this.mapConfigurationObject(config || {});
if (mappedConfig) {
Expand Down

0 comments on commit 7b36abf

Please sign in to comment.