Merge pull request #13378 from ANR2ME/adhocmatching_fix

AdhocMatching P2P Mode Fix - Bleach Heat the Soul 7
This commit is contained in:
Henrik Rydgård
2020-09-04 11:13:51 +02:00
committed by GitHub
+2 -2
View File
@@ -5437,9 +5437,9 @@ void actOnHelloPacket(SceNetAdhocMatchingContext * context, SceNetEtherAddr * se
}
// Peer available now
if (peer != NULL)
if (peer != NULL && peer->state != PSP_ADHOC_MATCHING_PEER_OUTGOING_REQUEST && peer->state != PSP_ADHOC_MATCHING_PEER_INCOMING_REQUEST)
{
// Spawn Hello Event
// Spawn Hello Event. FIXME: HELLO event should not be triggered in the middle of joining? This will cause Bleach 7 to Cancel the join request
spawnLocalEvent(context, PSP_ADHOC_MATCHING_EVENT_HELLO, sendermac, optlen, opt);
}
}