Skip to content

Commit

Permalink
Merge pull request #56 from milospi/fix-test
Browse files Browse the repository at this point in the history
fixed test
  • Loading branch information
mostafas authored Apr 20, 2026
2 parents 852edfb + 4f0e826 commit ceda057
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,18 @@ public void listenToRoundAnswerCount(String sessionId, int roundIndex,

@Override
public void clearAnswers(String sessionId, SimpleCallback callback) {
Map<String, Map<String, Boolean>> sessionAnswers = answers.get(sessionId);
Map<Integer, Set<String>> sessionAnswers = answers.get(sessionId);
if (sessionAnswers != null) sessionAnswers.clear();
callback.onSuccess();
}

@Override
public void stopAllListeners() {
playerListeners.clear();
stateListeners.clear();
answerCountListeners.clear();
}

// =========================================================================
// Internal helpers
// =========================================================================
Expand Down

0 comments on commit ceda057

Please sign in to comment.