mirror of
https://github.com/pockethost/pockethost.git
synced 2025-09-14 12:40:13 +00:00
18 lines
416 B
Diff
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
|