Fixed null rest logger exceptions

This commit is contained in:
RogueException
2015-12-29 17:36:48 -04:00
parent 76acbecd71
commit c51a049d18
2 changed files with 4 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ namespace Discord.Net.Rest
{
_config = config;
_baseUrl = baseUrl;
Logger = logger;
_rateLimitLock = new object();
_client = new HttpClient(new HttpClientHandler
{

View File

@@ -22,6 +22,8 @@ namespace Discord.Net.Rest
public RestSharpEngine(DiscordConfig config, string baseUrl, Logger logger)
{
_config = config;
Logger = logger;
_rateLimitLock = new object();
_client = new RestSharp.RestClient(baseUrl)
{