From bf0eea84a319f53d758e8d15bb02eabca16fc1d5 Mon Sep 17 00:00:00 2001 From: starnakin Date: Wed, 15 May 2024 16:45:05 +0200 Subject: [PATCH] bozo --- django/frontend/static/js/api/Notice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/frontend/static/js/api/Notice.js b/django/frontend/static/js/api/Notice.js index a296d1a..66c9cb7 100644 --- a/django/frontend/static/js/api/Notice.js +++ b/django/frontend/static/js/api/Notice.js @@ -49,7 +49,7 @@ export default class Notice { async stop() { if (this._socket) { - while (!this._socket.OPEN) + while (!this._socket.readyState === 1) await sleep(100); this._socket.close() this._socket = undefined;