mirror of
https://github.com/amark/gun.git
synced 2025-06-08 15:16:42 +00:00
Fix for bye system
This commit is contained in:
parent
7ace727231
commit
665c7a6ef6
@ -3,7 +3,6 @@ var Gun = (typeof window !== "undefined")? window.Gun : require('../gun');
|
|||||||
Gun.on('opt', function(root){
|
Gun.on('opt', function(root){
|
||||||
this.to.next(root);
|
this.to.next(root);
|
||||||
if(root.once){ return }
|
if(root.once){ return }
|
||||||
console.log("WARNING: `lib/bye` is out of date!");
|
|
||||||
root.on('in', function(msg){
|
root.on('in', function(msg){
|
||||||
if(!msg.peer || !msg.BYE){ return this.to.next(msg) }
|
if(!msg.peer || !msg.BYE){ return this.to.next(msg) }
|
||||||
var peer = msg.peer();
|
var peer = msg.peer();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user