Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when reconnect strategy is null and server has error #23

Open
madagaga opened this issue Jan 4, 2019 · 2 comments
Open

Crash when reconnect strategy is null and server has error #23

madagaga opened this issue Jan 4, 2019 · 2 comments

Comments

@madagaga
Copy link

madagaga commented Jan 4, 2019

If reconnect strategy is null
socket.SetReconnectStrategy(null);

OnWebsocketClosed throw an null reference exception.

@madagaga madagaga changed the title System.NullReferenceException when reconnect strategy is null Crash when reconnect strategy is null and server has error Jan 4, 2019
@ansubur
Copy link

ansubur commented Jan 18, 2019

I too face the same issue. Any help would be much appreciated!

@ansubur
Copy link

ansubur commented Jan 18, 2019

instead of null try using reconnectionstrategy with setmaxattempts(0);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants