Browse Source

Revert "fix: Properly rethrow exceptions in SocketGuild audio client"

This reverts commit adf4da19fc.

Someone hasn't written c# in a while
tags/2.0
Christopher F 7 years ago
parent
commit
237ad0f867
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs

+ 4
- 4
src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs View File

@@ -549,10 +549,10 @@ namespace Discord.WebSocket

await Discord.ApiClient.SendVoiceStateUpdateAsync(Id, channelId, selfDeaf, selfMute).ConfigureAwait(false);
}
catch (Exception e)
catch (Exception)
{
await DisconnectAudioInternalAsync().ConfigureAwait(false);
throw e;
throw;
}
finally
{
@@ -566,10 +566,10 @@ namespace Discord.WebSocket
throw new TimeoutException();
return await promise.Task.ConfigureAwait(false);
}
catch (Exception e)
catch (Exception)
{
await DisconnectAudioAsync().ConfigureAwait(false);
throw e;
throw;
}
}



Loading…
Cancel
Save