Fix auto-disconnect when last user leaves.
This commit is contained in:
parent
2a25e1368d
commit
16c2c61e76
|
@ -188,7 +188,7 @@ public final class Chords extends ListenerAdapter
|
||||||
final AudioChannel channelLeft = event.getChannelLeft();
|
final AudioChannel channelLeft = event.getChannelLeft();
|
||||||
if (channelLeft != null && channelLeft == currentVoiceChannel)
|
if (channelLeft != null && channelLeft == currentVoiceChannel)
|
||||||
{
|
{
|
||||||
if (channelLeft.getMembers().isEmpty())
|
if (channelLeft.getMembers().size() <= 1) // just us now
|
||||||
disconnect();
|
disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -400,6 +400,16 @@ public final class Chords extends ListenerAdapter
|
||||||
{
|
{
|
||||||
|
|
||||||
private static final String PROGRESS_SYMBOLS = " ▏▎▍▌▋▊▉█";
|
private static final String PROGRESS_SYMBOLS = " ▏▎▍▌▋▊▉█";
|
||||||
|
|
||||||
|
/*
|
||||||
|
⠀⡀⣀⣠⣤⣦⣶⣾⣿
|
||||||
|
🌑🌘🌗🌖🌕
|
||||||
|
🌩🌨🌧🌦🌥🌤🌞
|
||||||
|
○◔◑◕●
|
||||||
|
□🞎🞏🞐🞑🞒🞓■
|
||||||
|
□▤▥▦▧▨▩■
|
||||||
|
▁▂▃▄▅▆▇█
|
||||||
|
*/
|
||||||
// private static final String PROGRESS_SYMBOLS = " ⠀⡀⣀⣠⣤⣦⣶⣾⣿";
|
// private static final String PROGRESS_SYMBOLS = " ⠀⡀⣀⣠⣤⣦⣶⣾⣿";
|
||||||
|
|
||||||
public DownloaderMessageHandler()
|
public DownloaderMessageHandler()
|
||||||
|
|
Loading…
Reference in New Issue