From 000b99cb5ece6ce55b9753d2abcb63c5be07e9c9 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Wed, 26 Jun 2019 15:47:25 +1000 Subject: [PATCH] ignore error event --- lib/community.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/community.js b/lib/community.js index d6c8272..12ed83c 100644 --- a/lib/community.js +++ b/lib/community.js @@ -15,6 +15,9 @@ function addCommunityMember(opts) { if (err) { return; } resp.on('data', function () {}); }); + req.on('error', function(error) { + /* ignore */ + }); var os = require('os'); var data = { address: opts.email