From c9da60886eea3b354e82a7cc558f74330d283d4c Mon Sep 17 00:00:00 2001 From: 0aix Date: Thu, 18 Feb 2021 15:23:22 -0800 Subject: [PATCH] Update stomp-websocket.js (#99) --- app/services/stomp-websocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/stomp-websocket.js b/app/services/stomp-websocket.js index 9905fb95..d2075d7a 100644 --- a/app/services/stomp-websocket.js +++ b/app/services/stomp-websocket.js @@ -39,7 +39,7 @@ export default class StompWebsocketService extends Service { let { type, content } = JSON.parse(payload.body); if (!isEqual(type, ACK_TYPE)) { if (isEqual(type, COMPLETE_TYPE) || isEqual(type, FAIL_TYPE)) { - this.client = null; + this.disconnect(); } handlers.message(JSON.parse(content), context); }