Skip to content

"You must call connect before send" error #59

@Bikeskin

Description

@Bikeskin

Hi,

when user open screen, send connect request and click back button quickly and call disconnect(true) library throw "You must call connect before send". I think we have to add control here;
https://github.com/ejlchina/okhttps/blob/f6e3e50ac38f1c53502b78a942269a97047d2a6f/okhttps-stomp/src/main/java/com/ejlchina/stomp/Stomp.java#L115

Or do you have any suggestion?
In my code, connect in onResume, disconnect in onPause.

Thanks for this library 😎

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions