From 1a86682e8468aa2634153cd18f595fb968ea5282 Mon Sep 17 00:00:00 2001 From: Katharine Chui Date: Thu, 5 Mar 2026 22:34:26 +0100 Subject: [PATCH] do not use ptp connection result to check for adhoc relay status ptp connection failure could also be due to the clinet on the other side not accepting the connection --- Core/HLE/sceNetAdhoc.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/HLE/sceNetAdhoc.cpp b/Core/HLE/sceNetAdhoc.cpp index 2a6bb766c6..d1e0558605 100644 --- a/Core/HLE/sceNetAdhoc.cpp +++ b/Core/HLE/sceNetAdhoc.cpp @@ -1334,11 +1334,13 @@ static int ptp_connect_postoffice(int idx, const char *caller) { if (ptp_socket == NULL) { internal->connectThreadResult = SCE_NET_ADHOC_ERROR_CONNECTION_REFUSED; ERROR_LOG(Log::sceNet, "%s: failed connecting to ptp socket, %d", __func__, state); - handle_relay_connect_failure(); + // do not count ptp connect failure as relay failure, since it could be the other client not accepting the connection + //handle_relay_connect_failure(); internal->connectThreadDone = true; return; } - handle_relay_connect_success(); + // see above, ptp connect result is not used for checking if relay is working + //handle_relay_connect_success(); internal->postofficeHandle = ptp_socket; internal->connectThreadResult = 0; INFO_LOG(Log::sceNet, "%s: connected ptp socket with id %d %p", __func__, idx + 1, internal->postofficeHandle);