Fix for bye system

This commit is contained in:
JamieRez 2018-12-20 14:33:08 -08:00
parent 7ace727231
commit 665c7a6ef6

View File

@ -3,7 +3,6 @@ var Gun = (typeof window !== "undefined")? window.Gun : require('../gun');
Gun.on('opt', function(root){
this.to.next(root);
if(root.once){ return }
console.log("WARNING: `lib/bye` is out of date!");
root.on('in', function(msg){
if(!msg.peer || !msg.BYE){ return this.to.next(msg) }
var peer = msg.peer();
@ -34,4 +33,4 @@ Gun.chain.bye = function(){
return gun;
}
return bye;
}
}