Skip to content

Commit

Permalink
Fix compile time errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Oct 18, 2024
1 parent 3b741cb commit ad1b4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripty_audio_handler/src/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub async fn connect_to_vc(
debug!(%guild_id, "checking if call already exists");
if let Some(existing) = ctx_data.existing_calls.get(&guild_id) {
// call already exists, if channel ID != current one continue as we need to switch VCs
if existing == voice_channel_id {
if existing.value() == &voice_channel_id {
// attempting to rejoin the same channel, so return early
debug!(%voice_channel_id, %guild_id, "attempting to rejoin the same channel that we were already in, refusing to do so");
return Err(Error::already_exists());
Expand Down

0 comments on commit ad1b4e7

Please sign in to comment.