Allow a pairing attempt even if the PC is busy

Pairing while busy doesn't work with GFE but works with Sunshine
This commit is contained in:
Cameron Gutman
2022-10-12 22:15:58 -05:00
parent 63f0910eac
commit c7a30d8728
3 changed files with 12 additions and 20 deletions

View File

@@ -481,7 +481,12 @@ private:
emit pairingCompleted(m_Computer, "The PIN from the PC didn't match. Please try again.");
break;
case NvPairingManager::PairState::FAILED:
emit pairingCompleted(m_Computer, "Pairing failed. Please try again.");
if (m_Computer->currentGameId != 0) {
emit pairingCompleted(m_Computer, "You cannot pair while a previous session is still running on the host PC. Quit any running games or reboot the host PC, then try pairing again.");
}
else {
emit pairingCompleted(m_Computer, "Pairing failed. Please try again.");
}
break;
case NvPairingManager::PairState::ALREADY_IN_PROGRESS:
emit pairingCompleted(m_Computer, "Another pairing attempt is already in progress.");