Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix position in streams and use isSeekable #48

Merged
merged 1 commit into from
Dec 21, 2017
Merged

Fix position in streams and use isSeekable #48

merged 1 commit into from
Dec 21, 2017

Conversation

Repulser
Copy link
Contributor

No description provided.

@freyacodes freyacodes merged commit 0d69043 into lavalink-devs:dev Dec 21, 2017
@@ -135,7 +135,6 @@ public boolean isPaused() {
@Override
public long getTrackPosition() {
if (getPlayingTrack() == null) throw new IllegalStateException("Not currently playing anything");
if (getPlayingTrack().getInfo().isStream) return Long.MAX_VALUE;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relying on this return value might be a thing that is or was hard coded in FredBoat :^)
Probably should be checked before updating lavalink the next time. I might if I don't forget to later.

freyacodes pushed a commit to freyacoded/repo-test that referenced this pull request Oct 11, 2022
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.

3 participants