Await librespot initialization in SpotifyApi

This commit is contained in:
Rafael Moraes
2026-03-26 14:35:50 -03:00
parent 8e7b6fb5e2
commit 34fc3a6ba5
+1 -1
View File
@@ -149,7 +149,7 @@ class SpotifyApi:
elif self.session_type in {SessionType.LIBRESPOT, SessionType.WEB}:
await self._initialize_authorization_with_totp()
if self.session_type == SessionType.LIBRESPOT:
asyncio.to_thread(self._initialize_librespot)
await asyncio.to_thread(self._initialize_librespot)
def _set_authorization_header(
self,