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

Fix/transport stopped flag #12423

Merged
merged 2 commits into from
May 16, 2024
Merged

Fix/transport stopped flag #12423

merged 2 commits into from
May 16, 2024

Conversation

szymonlesisz
Copy link
Contributor

@szymonlesisz szymonlesisz commented May 15, 2024

Description

Based on #12422

  • Transport should be stopped before calling Transport.init or in case when Transport.init throws error
  • AbstractApiTransport.acquire listenPromise condition check

@mroz22
Copy link
Contributor

mroz22 commented May 15, 2024

please rebase 🙏

Transport should be stopped before calling Transport.init or in case when Transport.init throws error
@szymonlesisz szymonlesisz force-pushed the fix/transport-stopped-flag branch from b5cd28b to f2b4ccc Compare May 16, 2024 08:29
@@ -93,7 +93,7 @@ export abstract class AbstractTransport extends TypedEmitter<{
/**
* once transport has been stopped, it does not emit any events
*/
protected stopped = false;
protected stopped = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure if stopped is the best name, inited ? running?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would go for dispose and disposed

@mroz22 mroz22 merged commit c37d129 into develop May 16, 2024
50 checks passed
@mroz22 mroz22 deleted the fix/transport-stopped-flag branch May 16, 2024 11:13
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.

2 participants