hypercore-protocol
Advanced tools
Comparing version 8.0.3 to 8.0.4
@@ -192,2 +192,3 @@ const SHP = require('simple-hypercore-protocol') | ||
this.local[ch.localId] = null | ||
ch.state.close(ch.localId, {}) | ||
ch.localId = -1 | ||
@@ -201,3 +202,4 @@ if (ch.handlers && ch.handlers.onclose) ch.handlers.onclose() | ||
this.created.delete(ch.discoveryKey.toString('hex')) | ||
const hex = ch.discoveryKey.toString('hex') | ||
if (this.created.get(hex) === ch) this.created.delete(hex) | ||
this.stream._prefinalize() | ||
@@ -204,0 +206,0 @@ } |
{ | ||
"name": "hypercore-protocol", | ||
"version": "8.0.3", | ||
"version": "8.0.4", | ||
"description": "Stream that implements the hypercore protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
42347
1056