diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-05-08 00:28:59 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-05-08 00:28:59 -0400 |
commit | 75158f2c295bdc52ab4743b3529ce9092ccfd502 (patch) | |
tree | c552fc4ccb4446bbfbad33db3014c37a756a07a0 /src/discord/voiceclient.cpp | |
parent | 68948259c2639622c240d061d4050a5d6a17f594 (diff) | |
download | abaddon-portaudio-75158f2c295bdc52ab4743b3529ce9092ccfd502.tar.gz abaddon-portaudio-75158f2c295bdc52ab4743b3529ce9092ccfd502.zip |
handle channel moves + region change
Diffstat (limited to 'src/discord/voiceclient.cpp')
-rw-r--r-- | src/discord/voiceclient.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/discord/voiceclient.cpp b/src/discord/voiceclient.cpp index c58d4b8..c37ba7b 100644 --- a/src/discord/voiceclient.cpp +++ b/src/discord/voiceclient.cpp @@ -166,6 +166,10 @@ DiscordVoiceClient::~DiscordVoiceClient() { } void DiscordVoiceClient::Start() { + if (IsConnected() || IsConnecting()) { + Stop(); + } + SetState(State::ConnectingToWebsocket); m_ssrc_map.clear(); m_heartbeat_waiter.revive(); |