# Sandbox.PartyRoom.CancelJoin

```csharp
void CancelJoin()
```

Cancel a download, wait for the leader, or connection attempt while staying in the party.
Does nothing in other stages, including after joining. Must be called on the main thread.

Declared in [Sandbox.PartyRoom](/api/Sandbox.PartyRoom).
Assembly: `Sandbox.Engine`.
