[unix] fix a bug when poller errors would be unhandled

They will now be handled by the reads and writes that use it.
This commit is contained in:
Francis Gulotta 2017-07-29 00:08:19 -04:00
parent cc779624db
commit 63c5554fee

View file

@ -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"');