streams2: Correct drain/return logic
authorisaacs <i@izs.me>
Fri, 5 Oct 2012 14:45:03 +0000 (07:45 -0700)
committerisaacs <i@izs.me>
Fri, 14 Dec 2012 01:00:25 +0000 (17:00 -0800)
commit06e321d0f9692af1b6c6909cdfc49fd1b197129c
tree01fc4d803338993b721a2ad0b6edad8f80f7a70c
parent02f017d24f8cd93939bb4bd178b878d15cc5a08c
streams2: Correct drain/return logic

It was testing the length *before* adding the current chunk, which
is the opposite of correct.

Also, the return value was flipped.
lib/_stream_writable.js