Playe disconnect events not firing in Editor - Dedicated Server

4.14.3

Custom GameModeBase

//Pawn is destroyed by the time this is called.
	virtual void Logout(AController* Exiting);

Custom PlayerController

/** Clean up when a Pawn's player is leaving a game. Base implementation destroys the pawn. */
virtual void PawnLeavingGame();

The above two methods are not called when hitting the stop button.

PIE settings under Play button

  • Dedicated server checked

  • One player

Level Editor - Play
Use Single Process is UNCHECKED
Editor Multiplayer Mode is “Play as Client”

Works when:

  • It works when I build the client and the dedicated server and run them without making any changes to the code.

  • It works if I specify TWO players and quit the NON Editor client.