Skip to content

Commit

Permalink
[minor] Turn the indefinitely sending off for now, painful to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Nov 14, 2014
1 parent 80577eb commit 09d13d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ Node.prototype.broadcast = function broadcast(packet, timeout) {
* @api private
*/
function wrapper(client, data) {
node.indefinitely(function attempt(next) {
//node.indefinitely(function attempt(next) {
client.write(data, function written(err, data) {
if (err) return next(err);
if (err) return;// next(err);

//
// OK, so this is the strange part here. We've broadcasted message and
Expand All @@ -543,9 +543,9 @@ Node.prototype.broadcast = function broadcast(packet, timeout) {
//
if (data) node.emit('data', data);

next();
//next();
});
}, nope, timeout);
//}, nope, timeout);
}

for (var i = 0; i < node.nodes.length; i++) {
Expand Down

0 comments on commit 09d13d9

Please sign in to comment.