diff --git a/src/stores/streaming.js b/src/stores/streaming.js index f891bc648..5fec7a788 100644 --- a/src/stores/streaming.js +++ b/src/stores/streaming.js @@ -108,6 +108,8 @@ export const useStreamingStore = defineStore('streaming', { } }, initSocket(initial) { + if (this.socket) throw new Error('Socket already exists!') + this.state = initial ? WSConnectionStatus.STARTING_INITIAL : WSConnectionStatus.STARTING