summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorCrunchBite <crunchbite@teamxlink.co.uk>2021-04-15 09:01:52 -0400
committerCrunchBite <crunchbite@teamxlink.co.uk>2021-04-15 09:01:52 -0400
commitd6b2fe2c0a663fa2feb0286a15c71a058aeb87fc (patch)
treeb249c1dc48258b8e18c2a923ebaec8ae0832facf /Source/Core
parent14959a1087b05500c5704b59e7d694d941d4a5cf (diff)
Fix crash when stopping a game that does not use the BBA
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp b/Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp
index 61e1eefb90..cb1c096ed0 100644
--- a/Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp
+++ b/Source/Core/Core/HW/EXI/BBA/XLINK_KAI_BBA.cpp
@@ -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 =