From 72301104ffb817b2175bf50ffbc3284f8968ed48 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 20 May 2020 20:24:12 -0600 Subject: [PATCH] Update passthrough state --- core/client.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/client.js b/core/client.js index 40872fa2..88c9ea0f 100644 --- a/core/client.js +++ b/core/client.js @@ -107,11 +107,13 @@ function Client(/*input, output*/) { }); this.setTemporaryDirectDataHandler = function(handler) { + this.dataPassthrough = true; // let implementations do with what they will here this.input.removeAllListeners('data'); this.input.on('data', handler); }; this.restoreDataHandler = function() { + this.dataPassthrough = false; this.input.removeAllListeners('data'); this.input.on('data', this.dataHandler); };