mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
avoid sending nothing.
This commit is contained in:
parent
98b9c4fdb7
commit
7bad1dbecc
6
gun.js
6
gun.js
@ -2338,8 +2338,10 @@
|
||||
if(!cat.udrain){ return }
|
||||
var tmp = cat.udrain;
|
||||
cat.udrain = null;
|
||||
message = JSON.stringify(tmp);
|
||||
Gun.obj.map(cat.opt.peers, send, cat);
|
||||
if( tmp.length ) {
|
||||
message = JSON.stringify(tmp);
|
||||
Gun.obj.map(cat.opt.peers, send, cat);
|
||||
}
|
||||
},1);
|
||||
wsp.count = 0;
|
||||
Gun.obj.map(cat.opt.peers, send, cat);
|
||||
|
Loading…
x
Reference in New Issue
Block a user