From 0bcdfcc77ad1166d06b7f8f7c4c8fca6da4184a1 Mon Sep 17 00:00:00 2001 From: lemonsh Date: Mon, 18 Jul 2022 09:16:36 +0200 Subject: [PATCH] It does indeed commit suicide --- src/commands/spotify.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/commands/spotify.rs b/src/commands/spotify.rs index 0b7a2f7..a902061 100644 --- a/src/commands/spotify.rs +++ b/src/commands/spotify.rs @@ -47,11 +47,9 @@ async fn resolve_spotify( resource_type: &str, resource_id: &str, ) -> anyhow::Result { - // uncomment this if titlebot commits suicide after exactly 30 minutes - - /*if spotify.token.lock().await.unwrap().as_ref().unwrap().is_expired() { + if spotify.token.lock().await.unwrap().as_ref().unwrap().is_expired() { spotify.request_token().await?; - }*/ + } tracing::debug!( "Resolving Spotify resource '{}' with id '{}'", resource_type,