Skip to content

Commit 86bdc84

Browse files
committed
fix: remove redundant error event listeners in Tunnel class
1 parent 0b895ea commit 86bdc84

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/tunnel.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,10 @@ export class Tunnel extends EventEmitter {
7676
// cloudflared outputs to stderr, but I think its better to listen to stdout too
7777
this.on("stdout", (output) => {
7878
this.processOutput(output);
79-
}).on("error", (err) => {
80-
this.emit("error", err);
8179
});
8280

8381
this.on("stderr", (output) => {
8482
this.processOutput(output);
85-
}).on("error", (err) => {
86-
this.emit("error", err);
8783
});
8884
}
8985

0 commit comments

Comments
 (0)