pockethost/patches/tail@2.2.6.patch
Ben Allfree d2961e67b1 wip
2025-07-19 17:56:48 -07:00

18 lines
416 B
Diff

diff --git a/lib/tail.js b/lib/tail.js
index 3ca5af25aad3ed4c099883f6fc3ea5b976838929..91f678b683d3b1e1c14e663ca155ce51cfbea222 100644
--- a/lib/tail.js
+++ b/lib/tail.js
@@ -342,6 +342,12 @@ class Tail extends events.EventEmitter {
}
}
+ close() {
+ this.unwatch()
+ this.internalDispatcher.removeAllListeners()
+ this.removeAllListeners()
+ }
+
}
exports.Tail = Tail