don't crash if multicast offline

This commit is contained in:
Mark Nadal 2019-08-29 14:29:08 -07:00
parent 0515403716
commit aa558f0706

View File

@ -22,7 +22,7 @@ Gun.on('create', function(root){
socket.bind(udp.port);
socket.on("listening", function(){
socket.addMembership(udp.address);
try { socket.addMembership(udp.address) }catch(e){ return }
udp.peer = {id: udp.address + ':' + udp.port, wire: socket};
udp.peer.say = function(raw){