Skip to content

IllegalArgumentException in ConnectionStateChange.java: previous and current state are: DISCONNECTED #218

Open
@Jeff11

Description

@Jeff11

Hi there,

I got a crash in ConnectionStateChange
using implementation 'com.pusher:pusher-java-client:2.0.0'

All crashes are happening on Android 9 systems and the previous and current state are always DISCONNECTED.

java.lang.IllegalArgumentException: Attempted to create an connection state update where both previous and current state are: DISCONNECTED
       at com.pusher.client.connection.ConnectionStateChange. + 4(ConnectionStateChange.java:4)
       at com.pusher.client.connection.websocket.WebSocketConnection.updateState + 155(WebSocketConnection.java:155)
       at com.pusher.client.connection.websocket.WebSocketConnection.access$200 + 27(WebSocketConnection.java:27)
       at com.pusher.client.connection.websocket.WebSocketConnection$8.run + 322(WebSocketConnection.java:322)
       at com.pusher.client.util.Factory$1.run + 109(Factory.java:109)
       at java.util.concurrent.ThreadPoolExecutor.runWorker + 1167(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run + 641(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run + 764(Thread.java:764)

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