Only use repeatability if no repeatability left

pull/1039/head v1.7.0
Bo Sunesen 2020-02-26 17:40:55 +01:00 committed by Boyan Soubachov
parent eb8c41ec07
commit acba37e5db
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ func (c matchCandidate) isBetterMatchThan(other matchCandidate) bool {
return true
}
if c.call.Repeatability > other.call.Repeatability {
if c.call.Repeatability > 0 && other.call.Repeatability <= 0 {
return true
}
return false