Fix retry in IgdbPlugin

This commit is contained in:
grimsi
2025-06-13 12:03:21 +02:00
parent 0633bb14e7
commit 54e37889c1
@@ -165,8 +165,8 @@ class IgdbPlugin(wrapper: PluginWrapper) : ConfigurableGameyfinPlugin(wrapper) {
val randomInterval = (1..5).random().toLong()
log.warn("IGDB rate limit exceeded, retrying in $randomInterval seconds...")
TimeUnit.SECONDS.sleep(randomInterval)
queryIgdbGames(query)
return queryIgdbGames(query)
}
log.error("Request to IGDB API failed with HTTP ${e.statusCode}")