Skip to content

Commit f5ced35

Browse files
committed
Stream 'drain' event now passes the stream as a parameter.
1 parent c17724e commit f5ced35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct($stream, LoopInterface $loop)
2727
});
2828

2929
$this->buffer->on('drain', function () {
30-
$this->emit('drain');
30+
$this->emit('drain', array($this));
3131
});
3232

3333
$this->resume();

0 commit comments

Comments
 (0)