Merge pull request #290 from MichailiK/pr/fix/pausebug
Fix player being paused when it is paused, then the queue being cleared
This commit is contained in:
@@ -166,6 +166,9 @@ public class AudioHandler extends AudioEventAdapter implements AudioSendHandler
|
|||||||
manager.getBot().getNowplayingHandler().onTrackUpdate(guildId, null, this);
|
manager.getBot().getNowplayingHandler().onTrackUpdate(guildId, null, this);
|
||||||
if(!manager.getBot().getConfig().getStay())
|
if(!manager.getBot().getConfig().getStay())
|
||||||
manager.getBot().closeAudioConnection(guildId);
|
manager.getBot().closeAudioConnection(guildId);
|
||||||
|
// unpause, in the case when the player was paused and the track has been skipped.
|
||||||
|
// this is to prevent the player being paused next time it's being used.
|
||||||
|
player.setPaused(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user