re-add destroy

This commit is contained in:
Mathias Buus 2022-03-11 19:46:06 +01:00
parent ab9d484ada
commit 0e5095aa35
1 changed files with 4 additions and 0 deletions

View File

@ -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)