Browse Source

Fix reconnecting issues after EUNKNOWN and ENOENT

master
yflory 9 months ago
parent
commit
572f81877f
1 changed files with 6 additions and 1 deletions
  1. 7
      www/common/sframe-chainpad-netflux-inner.js

7
www/common/sframe-chainpad-netflux-inner.js

@ -112,11 +112,16 @@ define([
});
sframeChan.on('EV_RT_CONNECT', function (content) {
//content.members.forEach(userList.onJoin);
if (isReady && myID === content.myID) {
// We are connected and we are "reconnecting" ==> we probably had to rejoin
// the channel because of a server error (enoent), don't update the toolbar
return;
}
isReady = false;
if (myID) {
// it's a reconnect
myID = content.myID;
chainpad.start();
//chainpad.start();
onConnectionChange({ state: true, myId: myID });
return;
}

Loading…
Cancel
Save