Merge pull request #393 from ronaldheft/fix-on-ready-multiple-calls

fix: onReady called multiple times
This commit is contained in:
advplyr
2022-09-19 16:46:00 -05:00
committed by GitHub
+4 -2
View File
@@ -155,8 +155,10 @@ export default {
}
// Settings have been loaded (at least once, so it's safe to kickoff onReady)
this.settingsLoaded = true
this.notifyOnReady()
if (!this.settingsLoaded) {
this.settingsLoaded = true
this.notifyOnReady()
}
},
setListeners() {
// if (!this.$server.socket) {