Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Conversation

pgte
Copy link
Contributor

@pgte pgte commented Mar 24, 2017

stream-to-duplex-stream ends the stream immediately when classicStream.end is called.
Since now the unifxfs addStream end happens asynchronously, this was ending the stream prematurely, before it had the chance to emit everything.

@jbenet jbenet added the status/in-progress In progress label Mar 24, 2017
_read () {
this._pullStream(null, (err, data) => {
if (err) {
if (err instanceof Error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about true for end?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of calling it err I'm now calling it end.

@daviddias daviddias merged commit 4b064a1 into master Mar 24, 2017
@daviddias daviddias deleted the fix/createaddstream branch March 24, 2017 11:47
@daviddias daviddias removed the status/in-progress In progress label Mar 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants