1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-05-05 03:34:05 +02:00

Log exceptions caught in RPC thread

This commit is contained in:
chylex 2023-03-03 04:28:33 +01:00
parent 33de01f564
commit 89e67e1690
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -43,7 +43,11 @@ public abstract class RpcRuntime<TSocket> where TSocket : ThreadSafeSocket, new(
Connect(socket);
void RunTask() {
Run(socket, replyTracker, taskManager);
try {
Run(socket, replyTracker, taskManager);
} catch (Exception e) {
runtimeLogger.Error(e, "Caught exception in RPC thread.");
}
}
try {