Skip to content

Stop announcement burst when reconnecting after connection loss#3355

Open
beqabeqa473 wants to merge 1 commit into
masterfrom
stop_announcement_burst
Open

Stop announcement burst when reconnecting after connection loss#3355
beqabeqa473 wants to merge 1 commit into
masterfrom
stop_announcement_burst

Conversation

@beqabeqa473

Copy link
Copy Markdown
Contributor

No description provided.

CountDownTimer eventTimer;
SparseArray<CmdComplete> activecmds = new SparseArray<>();

private boolean synchronizing = false;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of introducing synchronizing it should be enough to check activecmds.size() == 0 or (activecmds.contains(CmdComplete.CMD_COMPLETE_JOIN) || activecmds.contains(CmdComplete.CMD_COMPLETE_LOGIN)) == false

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

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

Successfully merging this pull request may close these issues.

3 participants