pockethost/patches/tail.patch
2024-11-10 22:21:55 -08:00

17 lines
414 B
Diff

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