mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-05-21 04:34:05 +02:00
Log exceptions caught in RPC thread
This commit is contained in:
parent
33de01f564
commit
89e67e1690
@ -43,7 +43,11 @@ public abstract class RpcRuntime<TSocket> where TSocket : ThreadSafeSocket, new(
|
|||||||
Connect(socket);
|
Connect(socket);
|
||||||
|
|
||||||
void RunTask() {
|
void RunTask() {
|
||||||
Run(socket, replyTracker, taskManager);
|
try {
|
||||||
|
Run(socket, replyTracker, taskManager);
|
||||||
|
} catch (Exception e) {
|
||||||
|
runtimeLogger.Error(e, "Caught exception in RPC thread.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user