scuttlebutt
Advanced tools
Comparing version 5.6.5 to 5.6.6
15
index.js
@@ -146,2 +146,9 @@ var EventEmitter = require('events').EventEmitter | ||
i.each(self.history(sources), function (data) {d._data(data)}) | ||
//the _update listener must be set after the history is queued. | ||
//otherwise there is a race between the first client message | ||
//and the next update (which may come in on another stream) | ||
//this problem will probably not be encountered until you have | ||
//thousands of scuttlebutts. | ||
self.on('_update', onUpdate) | ||
@@ -222,10 +229,2 @@ | ||
//if tail, and writable, | ||
//the _update listener must be set after the history is queued. | ||
//otherwise there is a race between the first client message | ||
//and the next update (which may come in on another stream) | ||
//this problem will probably not be encountered until you have | ||
//thousands of scuttlebutts. | ||
else if(tail) | ||
self.on('_update', onUpdate) | ||
} else if (opts.sendClock) { | ||
@@ -232,0 +231,0 @@ //send my current clock. |
@@ -5,3 +5,3 @@ { | ||
"description": "replicate data via scuttlebutt protocol", | ||
"version": "5.6.5", | ||
"version": "5.6.6", | ||
"homepage": "https://github.com/dominictarr/scuttlebutt", | ||
@@ -8,0 +8,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
102645
1089