Skip to content

Commit

Permalink
Revert "fix: Properly rethrow exceptions in SocketGuild audio client"
Browse files Browse the repository at this point in the history
This reverts commit adf4da1.

Someone hasn't written c# in a while
  • Loading branch information
foxbot committed May 27, 2018
1 parent adf4da1 commit 237ad0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs
Expand Up @@ -549,10 +549,10 @@ internal async Task<IAudioClient> ConnectAudioAsync(ulong channelId, bool selfDe

await Discord.ApiClient.SendVoiceStateUpdateAsync(Id, channelId, selfDeaf, selfMute).ConfigureAwait(false);
}
catch (Exception e)
catch (Exception)
{
await DisconnectAudioInternalAsync().ConfigureAwait(false);
throw e;
throw;
}
finally
{
Expand All @@ -566,10 +566,10 @@ internal async Task<IAudioClient> ConnectAudioAsync(ulong channelId, bool selfDe
throw new TimeoutException();
return await promise.Task.ConfigureAwait(false);
}
catch (Exception e)
catch (Exception)
{
await DisconnectAudioAsync().ConfigureAwait(false);
throw e;
throw;
}
}

Expand Down

0 comments on commit 237ad0f

Please sign in to comment.