Skip to content

Commit 49abb79

Browse files
Warn if the bridge is reloaded before it has finished starting (#1744)
* Warn if the bridge is reloaded before it's finished starting * Fix changelog --------- Co-authored-by: Andrew Ferrazzutti <[email protected]>
1 parent 7c9dbee commit 49abb79

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ new Cli({
3939
},
4040
},
4141
onConfigChanged: function(config) {
42+
if (!bridge) {
43+
log.warn(`Bridge hasn't finished starting yet, config reload ignored`);
44+
return;
45+
}
4246
bridge.onConfigChanged(config);
4347
},
4448
generateRegistration: function(reg, callback) {

changelog.d/1744.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Warn if a config reload is attempted before the bridge is ready.

0 commit comments

Comments
 (0)