Browse Source

Fixed error with null proxycredentials

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

+ 1
- 1
src/Discord.Net/Net/WebSocket.WebSocketSharp.cs View File

@@ -35,7 +35,7 @@ namespace Discord.Net
_webSocket.EmitOnPing = false;
_webSocket.EnableRedirection = true;
_webSocket.Compression = WebSocketSharp.CompressionMethod.None;
_webSocket.SetProxy(_config.ProxyUrl, _config.ProxyCredentials.UserName, _config.ProxyCredentials.Password);
_webSocket.SetProxy(_config.ProxyUrl, _config.ProxyCredentials?.UserName, _config.ProxyCredentials?.Password);
_webSocket.OnMessage += (s, e) => RaiseProcessMessage(e.Data);
_webSocket.OnError += async (s, e) =>
{


Loading…
Cancel
Save