---
title: "match(_:shouldReinviteDisconnectedPlayer:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkmatchdelegate/match(_:shouldreinvitedisconnectedplayer:)"
---

# match(_:shouldReinviteDisconnectedPlayer:)

Determines whether the local player should reinvite another player who disconnected from a two-player match.

## Declaration

```swift
optional func match(_ match: GKMatch, shouldReinviteDisconnectedPlayer player: GKPlayer) -> Bool
```

## Parameters

- `match`: The match that the player disconnected from.
- `player`: The player who disconnected from the match.

## Mentioned in

Exchanging data between players in real-time games

## Return Value

Return Value true if GameKit should reinvite the player when they disconnect; false if GameKit should end the match when the player disconnects.

## Discussion

Discussion If the player successfully reconnects to the match, GameKit sends match(_:player:didChange:) to the match’s delegate.
