Skip to content

Rename login to start and make it idempotent#889

Open
vicancy wants to merge 1 commit into
Azure:mainfrom
vicancy:ff3
Open

Rename login to start and make it idempotent#889
vicancy wants to merge 1 commit into
Azure:mainfrom
vicancy:ff3

Conversation

@vicancy
Copy link
Copy Markdown
Member

@vicancy vicancy commented May 21, 2026

No description provided.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

public async start(): Promise<void> {
if (this._startPromise) return this._startPromise;
if (this._isStarted) return;
if (this._connectionStoppedTCS && this._isConnectionStopping) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

when the client is stopping, if start() is called twice, both will await here. After stop() done, two start() could call startCore() twice, leading to twice login and this.connection.start(). So start() is not idempotent enough.

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