Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit f12a513

Browse files
committed
First save config, then create new service client
1 parent 60bc358 commit f12a513

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nodecg-io-core/extension/instanceManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ export class InstanceManager extends EventEmitter {
172172
}
173173
}
174174

175-
// All checks passed. Set config.
175+
// All checks passed. Set config and save it.
176176
inst.config = config;
177+
this.emit("change");
177178

178179
// Update client of this instance using the new config.
179180
const updateResult = await this.updateInstanceClient(inst, instanceName, service.result);
180181

181-
this.emit("change");
182182
return updateResult;
183183
}
184184

0 commit comments

Comments
 (0)