Skip to content

Calling close() if readyState=0 == error #4

@xpepermint

Description

@xpepermint

Hey, it is I :)

I think I found something. My app is crashing (waits for 20sec before error popup) if I try to close the connection when it's not opened. So let say I execute

socket.start();
socket.close();

in that case the app will hang and Fore/Wait error will pop up.

So... I'm closing the connection when finishing the activity. User can see the activity for just a sec before it presses the back button and close/abort the connection. If the activity is closed immediately this error pops up if I wait for a few seconds and close the connection everything is working.

Can you tell me what to do in tat case? Do you know how to fix that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions