> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFLobbyDisconnectingStateChange

> Details of the Disconnecting PlayFab Multiplayer lobby state change, raised when a client begins the process of disconnecting from a lobby.

Information specific to the *Disconnecting* type of state change.

## Syntax

```cpp theme={null}
struct PFLobbyDisconnectingStateChange : PFLobbyStateChange {  
    PFLobbyHandle lobby;  
    PFLobbyDisconnectingReason reason;  
}  
```

### Members

**`lobby`**   PFLobbyHandle\
*must not be null*

The lobby that has started disconnecting.

**`reason`**   [PFLobbyDisconnectingReason](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbydisconnectingreason)

The reason the lobby started disconnecting.

## Remarks

This state change signals that the lobby is in the process of disconnecting because there are no local members actively connected or attempting to reconnect to the lobby. At the point when this state change is provided by [PFMultiplayerStartProcessingLobbyStateChanges()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pfmultiplayerstartprocessinglobbystatechanges), some operations which require a connected lobby object will begin to fail such as [PFLobbyAddMember](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbyaddmember).

## Requirements

**Header:** PFLobby.h

## See also

[PFLobby members](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)


## Related topics

- [PFMultiplayer C/C++ API overview - PFLobby.h](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFLobbyStateChangeType](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/enums/pflobbystatechangetype.md)
- [PFLobbyDisconnectedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbydisconnectedstatechange.md)
- [PFLobbyStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbystatechange.md)
- [PFLobbyUpdatedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyupdatedstatechange.md)
