aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Server/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.Server/Program.cs')
-rw-r--r--ShiftOS.Server/Program.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/ShiftOS.Server/Program.cs b/ShiftOS.Server/Program.cs
index ea16ab3..69571d0 100644
--- a/ShiftOS.Server/Program.cs
+++ b/ShiftOS.Server/Program.cs
@@ -163,7 +163,8 @@ namespace ShiftOS.Server
Console.WriteLine("Server stopping.");
};
- ChatBackend.StartDiscordBots();
+ var task = ChatBackend.StartDiscordBots();
+ task.Wait();
}
public static string ReadEncFile(string fPath)
@@ -247,8 +248,9 @@ namespace ShiftOS.Server
method?.Invoke(null, new[] { msg.GUID, contents });
}
- catch (MudException mEx)
+ catch (Exception mEx)
{
+ Console.WriteLine(mEx);
ClientDispatcher.DispatchTo("Error", msg.GUID, mEx);
}
catch
@@ -264,8 +266,8 @@ namespace ShiftOS.Server
}
catch (Exception ex)
{
- Console.WriteLine($"[{DateTime.Now}] Exception while handling request {msg.Name}: {ex}");
- return;
+ //Console.WriteLine($"[{DateTime.Now}] Exception while handling request {msg.Name}: {ex}");
+ //return;
}
}
}