From ee28e7d8d0561331bac79588cf4bfa414d10bb22 Mon Sep 17 00:00:00 2001 From: Jamie Meyer <45072324+HeatXD@users.noreply.github.com> Date: Sat, 8 Jul 2023 13:56:09 +0200 Subject: [PATCH] check if you get stuck while spectating. if this is the case try to disconnect. --- src/core/netplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/netplay.cpp b/src/core/netplay.cpp index 24c364bd4..c35f5a309 100644 --- a/src/core/netplay.cpp +++ b/src/core/netplay.cpp @@ -1971,12 +1971,13 @@ void Netplay::RunFrame() if (GGPO_SUCCEEDED(result)) { result = SyncInput(inputs, &disconnect_flags); + // check if you get stuck while spectating. if this is the case try to disconnect. if (s_local_spectating && result != GGPO_OK) { s_spectating_failed_count++; // after 5 seconds and still not spectating close since you are stuck. if (s_spectating_failed_count >= 300) - CloseSessionWithError("Failed to sync spectator. Please try again."); + CloseSessionWithError("Failed to sync spectator with host. Please try again."); } if (GGPO_SUCCEEDED(result))