Skip to content

Commit

Permalink
fix(Telepathy Server): More robust error handling in GetClientAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGadget1024 committed Sep 27, 2024
1 parent 38e2842 commit 9cace50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Assets/Mirror/Transports/Telepathy/Telepathy/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9cace50

Please sign in to comment.