Skip to content
Snippets Groups Projects
Unverified Commit d79c595e authored by capossele's avatar capossele
Browse files

:zap: Avoid sending empty rounds

parent fb60fb39
No related branches found
No related tags found
No related merge requests found
......@@ -174,6 +174,11 @@ func onRoundExecuted(roundStats *vote.RoundStats) {
defer connLock.Unlock()
for _, chunk := range chunks {
// abort if empty round
if len(chunk) == 0 {
return
}
rs := vote.RoundStats{
Duration: roundStats.Duration,
RandUsed: roundStats.RandUsed,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment