# Sandbox.Network.LobbyConfig.DestroyWhenHostLeaves

```csharp
bool DestroyWhenHostLeaves { get; set; }
```

Whether to automatically destroy this lobby when the host leaves. This is only
applicable to P2P lobbies.

Declared in [Sandbox.Network.LobbyConfig](/api/Sandbox.Network.LobbyConfig).
Assembly: `Sandbox.Engine`.
