hypercore-protocol
Advanced tools
Comparing version 4.4.0 to 4.4.1
@@ -67,2 +67,3 @@ var events = require('events') | ||
this._remoteNonce = null | ||
this._ready = false | ||
@@ -297,2 +298,4 @@ this._firstNonce = Buffer(24) | ||
ch._ready = true // to avoid premature events | ||
return ch | ||
@@ -423,3 +426,3 @@ } | ||
if (!channel.key || channel.buffer.length) { | ||
if (!channel.key || channel.buffer.length || !channel._ready) { | ||
if (channel.buffer.length === 16) return this.destroy(new Error('Buffer overflow')) | ||
@@ -426,0 +429,0 @@ channel.buffer.push(data) |
{ | ||
"name": "hypercore-protocol", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"description": "Stream that implements the hypercore protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
31193
722