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
commit 3b285db21a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {