Add sane whitelist, fix bad server init logging

This commit is contained in:
John Gross
2018-01-30 23:40:38 -08:00
parent b3d9a64632
commit e42a231553
8 changed files with 96 additions and 4 deletions

View File

@@ -86,7 +86,15 @@ quit";
public void Run()
{
_server = new TorchServer(_config);
var init = Task.Run(() => _server.Init());
var init = Task.Run(() => _server.Init()).ContinueWith(x =>
{
if (!x.IsFaulted)
return;
Log.Error("Error initializing server.");
foreach (var e in x.Exception.InnerExceptions)
Log.Error(e.InnerException ?? e);
});
if (!_config.NoGui)
{
if (_config.Autostart)