Skip to content

Cant reconnect (if first connect than disconnect is called than connect will not connect) #5

Description

@inspire580i

Cant reconnect (if first connect than disconnect is called than connect will not connect to web socket)

Problem: WebSocketConnection.java
if (mSocket != null && mSocket.isConnected()) {
throw new WebSocketException("already connected");
}

Solution:
if (isConnected()) {
throw new WebSocketException("already connected");
}

You are welcome

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions