Re: [whatwg/streams] ReadableStreamTee: do not read when already pulling (#997)

MattiasBuelens commented on this pull request.



> @@ -554,10 +554,14 @@ function ReadableStreamTee(stream, cloneForBranch2) {
   });
 
   function pullAlgorithm() {
-    return ReadableStreamDefaultReaderRead(reader).then(result => {
-      if (closed === true) {
-        return;
-      }
+    if (pulling === true) {

Fine by me, I'll rename it to `reading`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/997#discussion_r259848845

Received on Monday, 25 February 2019 14:31:06 UTC