mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(Telepathy Server): More robust error handling in GetClientAddress
This commit is contained in:
parent
38e2842abc
commit
9cace50233
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user