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

Don’t activate a transport that isn’t connected #255

Closed
wants to merge 1 commit into from

Conversation

SimonWoolf
Copy link
Member

Fixes #247

* scheduleTransportActivation#onceNoPending wait) then don't activate it */
if(!transport.isConnected) {
Logger.logAction(Logger.LOG_MINOR, 'ConnectionManager.activateTransport()', 'Declining to activate transport ' + transport + ' since it appears to no longer be connected');
Utils.arrDeleteValue(this.pendingTransports, transport);
Copy link
Member

Choose a reason for hiding this comment

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

I think I would have reversed the order of these things; ie unconditionally remove from the pendingTransports list, then decline to activate + return if not connected.

Copy link
Member Author

Choose a reason for hiding this comment

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

good point

@paddybyers
Copy link
Member

LGTM but see comment above.

SimonWoolf added a commit that referenced this pull request Apr 5, 2016
@SimonWoolf
Copy link
Member Author

Merged as c2a4912

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants