Don't leave the channel twice in cryptget
This commit is contained in:
parent
c9420200ce
commit
8d7bf62ff2
@ -16,11 +16,6 @@ define([
|
|||||||
var disconnect = Util.find(S, ['network', 'disconnect']);
|
var disconnect = Util.find(S, ['network', 'disconnect']);
|
||||||
if (typeof(disconnect) === 'function') { disconnect(); }
|
if (typeof(disconnect) === 'function') { disconnect(); }
|
||||||
}
|
}
|
||||||
if (S.leave) {
|
|
||||||
try {
|
|
||||||
S.leave();
|
|
||||||
} catch (e) { console.log(e); }
|
|
||||||
}
|
|
||||||
if (S.realtime && S.realtime.stop) {
|
if (S.realtime && S.realtime.stop) {
|
||||||
try {
|
try {
|
||||||
S.realtime.stop();
|
S.realtime.stop();
|
||||||
@ -70,7 +65,6 @@ define([
|
|||||||
config.onReady = function (info) {
|
config.onReady = function (info) {
|
||||||
var rt = Session.session = info.realtime;
|
var rt = Session.session = info.realtime;
|
||||||
Session.network = info.network;
|
Session.network = info.network;
|
||||||
Session.leave = info.leave;
|
|
||||||
progress(1);
|
progress(1);
|
||||||
finish(Session, void 0, rt.getUserDoc());
|
finish(Session, void 0, rt.getUserDoc());
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user