From 74ab558905a3370220ceac114137beb1844a5daa Mon Sep 17 00:00:00 2001 From: futpib Date: Fri, 16 Nov 2018 15:04:32 +0300 Subject: [PATCH] Reconnect after suspend --- store/pulse-middleware.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/store/pulse-middleware.js b/store/pulse-middleware.js index ffa6e79..8d07949 100644 --- a/store/pulse-middleware.js +++ b/store/pulse-middleware.js @@ -107,6 +107,10 @@ module.exports = store => { getInfo(type, index); }) .on('change', (type, index) => { + if (type === 'server') { + pa.end(); // Reconnect + return; + } store.dispatch(pulseActions.change({ type, index })); getInfo(type, index); })