From d4f041f3125e85c0f3997d0b7d7f266142773333 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 15 May 2024 16:30:37 +0200 Subject: [PATCH] fix --- django/frontend/static/js/api/Notice.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/django/frontend/static/js/api/Notice.js b/django/frontend/static/js/api/Notice.js index 43e1771..3fddc06 100644 --- a/django/frontend/static/js/api/Notice.js +++ b/django/frontend/static/js/api/Notice.js @@ -48,7 +48,11 @@ export default class Notice { stop() { if (this._socket) { - this._socket.close(); + try{ + this._socket.close(); + } + catch (e) + {} this._socket = undefined; } }