From 63c5554fee2b4b09136db0db9d6cc6d8b968f0ac Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Sat, 29 Jul 2017 00:08:19 -0400 Subject: [PATCH] [unix] fix a bug when poller errors would be unhandled They will now be handled by the reads and writes that use it. --- lib/bindings/poller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/bindings/poller.js b/lib/bindings/poller.js index 8f12d3e3e..91a17528c 100644 --- a/lib/bindings/poller.js +++ b/lib/bindings/poller.js @@ -13,7 +13,10 @@ const EVENTS = { function handleEvent(error, eventFlag) { if (error) { logger('error', error); - return this.emit('error', error); + this.emit('readable', error); + this.emit('writable', error); + this.emit('disconnect', error); + return; } if (eventFlag & EVENTS.UV_READABLE) { logger('received "readable"');