From 0e5095aa35f67edafa96045723f362c19f45c245 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Fri, 11 Mar 2022 19:46:06 +0100 Subject: [PATCH] re-add destroy --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 25462b3..dfb2a56 100644 --- a/index.js +++ b/index.js @@ -606,6 +606,10 @@ module.exports = class Protomux { this.stream.write(buffer) } + destroy (err) { + this.stream.destroy(err) + } + _safeDestroy (err) { safetyCatch(err) this.stream.destroy(err)