Skip to content

Conversation

@tomwmth
Copy link
Contributor

@tomwmth tomwmth commented Apr 19, 2025

Fixes #15.

Creating a new executor each call to AbstractTickSpotifyAPI#initialize even if properly shutdown leads to high memory usage. While this memory would eventually be reclaimed by the JVM, it feels correct to avoid it if possible. As such I opted to create a single executor per instance of AbstractTickSpotifyAPI. This necessitated the creation of SpotifyAPI#shutdown to support occasions where the user of the library chooses to not use the built-in auto-reconnect functionality in favour of their own.

@LabyStudio LabyStudio merged commit c7fd667 into LabyStudio:master Apr 21, 2025
@LabyStudio
Copy link
Owner

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AbstractTickSpotifyAPI thread leak

2 participants