Skip to content

Commit

Permalink
[unix] fix a bug when poller errors would be unhandled
Browse files Browse the repository at this point in the history
They will now be handled by the reads and writes that use it.
  • Loading branch information
reconbot committed Jul 29, 2017
1 parent cc77962 commit 63c5554
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bindings/poller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"');
Expand Down

0 comments on commit 63c5554

Please sign in to comment.