1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 12:00:08 +02:00

Remove readable on end. Should prevent writes after FIN.

This commit is contained in:
Simo Kinnunen 2014-10-15 13:00:41 +09:00
parent b519d604be
commit b98193b3a2

View file

@ -117,6 +117,7 @@ util.inherits(ForwardHandler, events.EventEmitter)
function DestHandler(id, conn, options) {
function endListener() {
conn.removeListener('drain', drainListener)
writer.removeListener('readable', readableListener)
this.emit('end')
}