fix(Telepathy Server): More robust error handling in GetClientAddress

This commit is contained in:
MrGadget 2024-09-27 12:50:33 -04:00
parent 38e2842abc
commit 9cace50233

View File

@ -339,6 +339,14 @@ public string GetClientAddress(int connectionId)
// so let's at least catch it and recover
return "unknown";
}
catch (ObjectDisposedException)
{
return "Disposed";
}
catch (Exception)
{
return "";
}
}
// disconnect (kick) a client