Merge pull request #9642 from CrunchBite/xlink-bba-fix

Fix crash when stopping a game that does not use the BBA when XLink Kai BBA is selected in configuration
This commit is contained in:
JosJuice 2021-04-18 10:43:32 +02:00 committed by GitHub
commit dbd39ab2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ bool CEXIETHERNET::XLinkNetworkInterface::Activate()
void CEXIETHERNET::XLinkNetworkInterface::Deactivate()
{
// Is the BBA Active? If not skip shutdown
if (!IsActivated())
return;
// Send d; to tell XLink we want to disconnect cleanly
// disconnect;optional_locally_unique_name;optional_padding
std::string cmd =