Skip to content

Conversation

@autarc
Copy link
Contributor

@autarc autarc commented Mar 18, 2016

As a WebsocketTracker is destroyed and reconnects after the specified/default interval some initial values are removed (which causes an errors e.g. as .peers is not an object anymore).

@feross
Copy link
Member

feross commented Mar 19, 2016

It's better to just set all this state in openSocket(). Will do that.

@feross feross closed this Mar 19, 2016
}

self.socket = null
self.reconnecting = false
Copy link
Member

Choose a reason for hiding this comment

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

This isn't correct. This boolean needs to stay true until a 'connect' event is fired. Setting it to false here defeats the point of it.

@feross
Copy link
Member

feross commented Mar 19, 2016

7.5.8

feross added a commit that referenced this pull request Mar 19, 2016
@autarc autarc deleted the fix-websockettracker-reset branch March 19, 2016 07:48
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