runasync -> runandblockasync, runasync is not blocking now (unused)

This commit is contained in:
Kwoth 2016-11-15 01:31:41 +01:00
parent b5fa858cbf
commit 0943a44c28

View File

@ -49,7 +49,7 @@ namespace NadekoBot
}
}
public async Task RunAsync(string[] args)
public async Task RunAsync(params string[] args)
{
SetupLogger();
_log = LogManager.GetCurrentClassLogger();
@ -111,8 +111,12 @@ namespace NadekoBot
#endif
Ready = true;
Console.WriteLine(await Stats.Print().ConfigureAwait(false));
}
await Task.Delay(-1);
public async Task RunAndBlockAsync(params string[] args)
{
await RunAsync(args).ConfigureAwait(false);
await Task.Delay(-1).ConfigureAwait(false);
}
private void SetupLogger()