RPC's Authorize should not try to authenticate

This commit is contained in:
RogueException
2016-10-10 21:34:45 -03:00
parent d480b2f25b
commit 3fc7b3b206
2 changed files with 27 additions and 19 deletions

View File

@@ -155,13 +155,13 @@ namespace Discord.Commands
var args = GenerateArgs(argList, paramList);
switch (RunMode)
{
case RunMode.Sync:
case RunMode.Sync: //Always sync
await _action(context, args).ConfigureAwait(false);
break;
case RunMode.Mixed:
case RunMode.Mixed: //Sync until first await statement
var t1 = _action(context, args);
break;
case RunMode.Async:
case RunMode.Async: //Always async
var t2 = Task.Run(() => _action(context, args));
break;
}