Skip to content

Do not open multiple simultaneous Node connections #41

@vcardillo

Description

@vcardillo

When a driver hits the "Login" button multiple times, do not open a new Node connection if one already exists.

You need a volatile boolean connected; variable. Then do connected=true; on Socket.EVENT_CONNECT and connected=false; on Socket.EVENT_DISCONNECT

Then you have to check that variable every time the driver hits the "Login" button.

If it’s true, display something like "Please wait. Login already in progress…"

Conversation posterity:
https://bentonow.slack.com/archives/engineering/p1452550736000061

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions