diff --git a/examples/http.js b/examples/http.js index 29714c3b..5fd4f8fb 100644 --- a/examples/http.js +++ b/examples/http.js @@ -1,7 +1,7 @@ ;(function(){ var cluster = require('cluster'); if(cluster.isMaster){ - return cluster.fork() && cluster.on('exit', function(){ return;cluster.fork(); require('../lib/crashed'); }); + return cluster.fork() && cluster.on('exit', function(){ cluster.fork(); require('../lib/crashed'); }); } var fs = require('fs'); diff --git a/gun.js b/gun.js index 731fedb5..b9009e89 100644 --- a/gun.js +++ b/gun.js @@ -1145,7 +1145,6 @@ var hear = mesh.hear = function(raw, peer){ if(!raw){ return } - require('fs').writeFileSync('heardatadebug.json',raw,noop); if(opt.pack <= raw.length){ return mesh.say({dam: '!', err: "Message too big!"}, peer) } if(mesh === this){ hear.d += raw.length||0 ; ++hear.c } // STATS! var tmp = raw[0], msg;