Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

fix: handle case where swarm closes before stream #229

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

Stebalien
Copy link
Member

When we close a connection, we set the "stream" set to nil to avoid opening new stream. Unfortunately, this meant we wouldn't decrement the reference count on the swarm.

When we close a connection, we set the "stream" set to nil to avoid opening new
stream. Unfortunately, this meant we wouldn't decrement the reference count on
the swarm.
@Stebalien Stebalien requested a review from vyzo September 2, 2020 21:56
Copy link
Contributor

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

good catch!

@Stebalien Stebalien merged commit 830b5b6 into master Sep 2, 2020
@Stebalien Stebalien deleted the fix/close-lock branch September 2, 2020 22:01
@aschmahmann aschmahmann mentioned this pull request Feb 18, 2021
73 tasks
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.

2 participants