Skip to content

Error disconnecting clients #511

@AtomicSponge

Description

@AtomicSponge

🐛 Error disconnecting clients

Strange behavior when disconnecting a client. Still tries to send an RPC despite closed connection. Using NetworkEvents autoload.

Steps to reproduce

Please see the example project:
https://github.com/AtomicSponge/netfox-debug-sponge

Run two instances and start a server with one, then join with a client on the other. After that disconnect with the client and it will start throwing errors.

Expected behavior

Clean disconnect with no errors

Observed behavior

Throws an error trying to run an RPC in _loop while disconnected.

Versions

  • Godot version: 4.5 Steam multiplayer
  • netfox version: 1.25.3
  • Also confirmed present in the GitHub main branch.

Notes

In addition, change the lines in close_connection() to see an error that hosting was causing. To reproduce this issue just run one instance and host/disconnect/re-host.

MRE

https://github.com/AtomicSponge/netfox-debug-sponge

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