sceNetAdhoc: Forget a blocking PTP connect when it's done

Its entry in sendTargetPeers stayed, so the next blocking connect from
the same thread on a socket that got the same id returned BUSY
(pspautotests net/adhoc/pair/basic, connect to a closed port, after a
connected socket was closed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-31 09:04:00 +01:00
1 parent a1a197e685
commit 7c9944b478
1 file changed
+2
+2
View File
@@ -1361,6 +1361,8 @@ static void __AdhocSocketNotify(u64 userdata, int cyclesLate) {
CoreTiming::ScheduleEvent(usToCycles(delayUS) - cyclesLate, adhocSocketNotifyEvent, userdata);
return;
}
// Done with it, or the next blocking connect on a socket that reuses this id would be BUSY.
sendTargetPeers.erase(userdata);
break;
case PTP_FLUSH: