From 5ea41244c1561e49027f90b07df31de3d1c7a40c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 1 Sep 2026 11:51:54 +0300 Subject: [PATCH] guard --- src/stores/streaming.js | 2 ++ 1 file changed, 2 insertions(+) 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