Skip to content

Invidious is an alternative front-end to YouTube

Pool: Use force_resolve in fallback new client

syeopite46c58bd84cf2
diff --git a/src/invidious/yt_backend/connection_pool.cr b/src/invidious/yt_backend/connection_pool.cr
index eaa94158..d474d760 100644
--- a/src/invidious/yt_backend/connection_pool.cr
+++ b/src/invidious/yt_backend/connection_pool.cr
@@ -30,7 +30,7 @@ struct YoutubeConnectionPool
response = yield conn
rescue ex
conn.close
- conn = make_client(url)
+ conn = make_client(url, force_resolve: true)
response = yield conn
ensure
pool.release(conn)