Skip to content

NetworkManager.OnClientDisconnectCallback is not called on the client that disconnects #1645

Closed
@rCarleon

Description

@rCarleon

To Reproduce

  • subscribe to OnClientDisconnectCallback
  • Start a server and a client
  • Connect client
  • Disconnect Client by stopping the client in the NetworkManager inspector (the stopping should not happen from server)
  • OnClientDisconnectCallback is only invoked on Server

Actual outcome
OnClientDisconnectCallback is only invoked on the Server and not on the client that has disconnected

Expected outcome
OnClientDisconnectCallback should be invoked on the client that disconnects

Environment (please complete the following information):

OS: Windows 10
Unity Version: 2021.2.4f1
Netcode Version: 1.0.0-pre.4

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions