We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a01481 commit ebf7891Copy full SHA for ebf7891
1 file changed
src/main/kotlin/gent/zeus/guitar/mqtt/MqttImpl.kt
@@ -33,6 +33,7 @@ class MqttContext {
33
val startTime = PlayerState.mutex.withLock { PlayerState.currentStartTime } ?: return@logExceptionWarn
34
35
val votesJson = jacksonObjectMapper().readValue<MqttVoteJson>(jsonString)
36
+ if (votesJson.songId != id) return@logExceptionWarn
37
publishTrack(id, startTime, votesJson.votesFor, votesJson.votesAgainst)
38
}
39
0 commit comments