Closed jokester closed 1 year ago
This is my first time coding in a real rust project. I didn't even know Arc<T>
before this day.
If something goes wrong I'm sorry :rofl:
Looks good to me, thanks!
@jokester @roderickvd this PR does not work. The logic is not correct and can't be correct anyway as the problem lies elsewhere.
The issue is that right now, no matter what, librespot will reconnect to your account every time you use Session::connect
.
This is problematic because
A token refresh if the current session dies would be the way. Still, the issue remains that the stored auth_data
isn't being reused at all. Cached but never used.
@Laiteux You may want to open a new issue, as this PR is closed and will unlikely get any attention from devs.
fixes #1168