We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfba7be + 61ed979 commit 4634a39Copy full SHA for 4634a39
1 file changed
pcap.js
@@ -102,7 +102,9 @@ PcapSession.prototype.on_packet_ready = function () {
102
PcapSession.prototype.close = function () {
103
this.opened = false;
104
this.session.close();
105
- this.readWatcher.stop();
+ if (this.is_live) {
106
+ this.readWatcher.stop();
107
+ }
108
// TODO - remove listeners so program will exit I guess?
109
};
110
0 commit comments