Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(LatencySimulation): implement PortTransport since almost all underlying Transports are PortTransports #3830

Merged
merged 3 commits into from
May 24, 2024

Conversation

miwarnec
Copy link
Collaborator

@miwarnec miwarnec commented May 24, 2024

Fixes a bug in a project that was trying to simulate latency.
They checked "if Transport is PortTransport" during setup, which silently broke with LatencySimulation since that's not a PortTransport.

This PR makes it a PortTransport, and warns if it isn't.
Instead of not being a PortTransport, which is wrong in 99% of the cases.

Copy link
Collaborator

@MrGadget1024 MrGadget1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix typos

Assets/Mirror/Transports/Latency/LatencySimulation.cs Outdated Show resolved Hide resolved
Assets/Mirror/Transports/Latency/LatencySimulation.cs Outdated Show resolved Hide resolved
miwarnec and others added 2 commits May 24, 2024 16:56
Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
Co-authored-by: MrGadget <9826063+MrGadget1024@users.noreply.github.com>
@miwarnec miwarnec merged commit 9d7fcca into master May 24, 2024
@miwarnec miwarnec deleted the fix_latencysim_porttransport branch May 24, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants