Browse Source

Don't crash if a null config is passed to the constructor

tags/docs-0.9
RogueException 9 years ago
parent
commit
c43f0d63e1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/DiscordSimpleClient.cs

+ 1
- 1
src/Discord.Net/DiscordSimpleClient.cs View File

@@ -55,7 +55,7 @@ namespace Discord
_config = config ?? new DiscordClientConfig();
_config.Lock();

_enableVoice = config.VoiceMode != DiscordVoiceMode.Disabled && !config.EnableVoiceMultiserver;
_enableVoice = _config.VoiceMode != DiscordVoiceMode.Disabled && !_config.EnableVoiceMultiserver;

_state = (int)DiscordClientState.Disconnected;
_cancelToken = new CancellationToken(true);


Loading…
Cancel
Save