File tree Expand file tree Collapse file tree
core/src/main/java/xyz/gianlu/librespot/player Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,18 +309,19 @@ private void loadTrack(boolean play) {
309309 trackHandler = preloadTrackHandler ;
310310 preloadTrackHandler = null ;
311311 trackHandler .sendSeek (state .getPositionMs ());
312- if (play ) {
313- state .setStatus (Spirc .PlayStatus .kPlayStatusPlay );
314- trackHandler .sendPlay ();
315- } else {
316- state .setStatus (Spirc .PlayStatus .kPlayStatusPause );
317- }
318312 } else {
319313 trackHandler = new TrackHandler (session , cacheManager , conf , this );
320314 trackHandler .sendLoad (ref , play , state .getPositionMs ());
321315 state .setStatus (Spirc .PlayStatus .kPlayStatusLoading );
322316 }
323317
318+ if (play ) {
319+ state .setStatus (Spirc .PlayStatus .kPlayStatusPlay );
320+ trackHandler .sendPlay ();
321+ } else {
322+ state .setStatus (Spirc .PlayStatus .kPlayStatusPause );
323+ }
324+
324325 stateUpdated ();
325326 }
326327
You can’t perform that action at this time.
0 commit comments