|
|
|
@ -864,6 +864,9 @@ define([
|
|
|
|
|
Cryptpad.removeLoginBlock(data, cb);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// It seems we have performance issues when we open and close a lot of channels over
|
|
|
|
|
// the same network, maybe a memory leak. To fix this, we kill and create a new
|
|
|
|
|
// network every 30 cryptget calls (1 call = 1 channel)
|
|
|
|
|
var cgNetwork;
|
|
|
|
|
var whenCGReady = function (cb) {
|
|
|
|
|
if (cgNetwork && cgNetwork !== true) { console.log(cgNetwork); return void cb(); }
|
|
|
|
|