Skip to content

setConnection in example 5.5 may put UI in an inconsistent state #339

Description

@markafoltz

setConnection() calls close() on an existing connection before adding an onconnect handler to the new connection. If the close event on the old connection fires after the connect event on the new connection, reset() will null out the new connection and disable the stop and disconnect buttons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions