This commit is contained in:
Mark Nadal 2016-02-04 09:34:15 -08:00
parent c8fe8ae00c
commit bf6c6e5a09

4
gun.js
View File

@ -1261,9 +1261,9 @@
if(!c){ return }
if(ws && ws.close instanceof Function){ ws.close() }
if(1006 === c.code){ // websockets cannot be used
ws = r.ws.peers[opt.base] = false;
/*ws = r.ws.peers[opt.base] = false;
r.transport(opt, cb);
return;
return;*/
}
ws = r.ws.peers[opt.base] = null; // this will make the next request try to reconnect
setTimeout(function(){