mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fix for errornous ending a song and sending many messages if slow internet
This commit is contained in:
@@ -638,7 +638,7 @@ var Player = {
|
||||
$("#bar").width(per+"%");
|
||||
}
|
||||
|
||||
if(Player.player.getCurrentTime() > Player.np.end) {
|
||||
if(Player.player.getCurrentTime() > Player.np.end && Player.player.getPlayerState() == YT.PlayerState.PLAYING) {
|
||||
Player.player.pauseVideo();
|
||||
playing = false;
|
||||
paused = false;
|
||||
|
||||
Reference in New Issue
Block a user