Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correctly handle OpenStreamSync returning after the session was closed #67

Merged
merged 2 commits into from
Feb 26, 2023

Conversation

marten-seemann
Copy link
Member

Fixes #66.

cc @masih, would you mind reviewing this PR?
I'll cut a patch release after this is merged.

Copy link

@masih masih left a comment

Choose a reason for hiding this comment

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

Many thanks for getting this resolved in such short time 🚀

session_test.go Outdated
errChan <- err
}()

time.Sleep(100 * time.Millisecond)
Copy link

Choose a reason for hiding this comment

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

Use require.Eventually?

Ditto in other places that use time.Sleep.

Copy link
Member Author

Choose a reason for hiding this comment

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

Refactored such that we don't need to sleep at all :)

@marten-seemann marten-seemann merged commit 6715c18 into master Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic on assignment to entry in nil map at streamsMap.AddStream
2 participants