Skip to content

[BUG]: ReferenceHub::connectionToClient.address getter throws error when client is disconnected #377

@Someone-193

Description

@Someone-193

Before You Report

  • I have searched for existing reports of this bug, and this bug report is unique.

Version

1.1.6, this is specifically a base game bug for the 14.2.6 beta

Description

When you use an event like PlayerLeft and then construct a footprint from that event, your code will now throw an error despite it still working last update. This happens due to (see title)

To Reproduce

subscribe to PlayerLeft event and then call the ReferenceHub::connectionToClient.address getter in 14.2.6

Expected Behavior

No error should happen

Additional Information

From what I can see in the base game code from previous SL versions, SL never actually cleared out the Peers array (now dictionary) in the custom mirror server implementation, I think this meant that peers actually stayed cached even after one disconnected or something? I dont fully know to be honest, you'd have to ask somebody who worked on the new custom mirror stuff tbh. Anyways, the new implementation actively removes peers from the dictionary so if I was correct, then really you could fix this by just not trying to remove peers from the dictionary when they disconnect, or you could just add a check to the footprint constructor to fix my use case specifically

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions