FEXServer: Fix auto-shutdown regression

Fixes: #4184
This commit is contained in:
Asahi Lina committed 2024-11-29 20:56:07 +09:00
1 parent 649a49488b
commit 7c0cf51f09
1 file changed
+1 -1
+1 -1
View File
@@ -514,7 +514,7 @@ void WaitForRequests() {
} else {
auto Now = std::chrono::system_clock::now();
auto Diff = Now - LastDataTime;
if (Diff >= std::chrono::seconds(RequestTimeout) && !Foreground && PollFDs.size() == 1) {
if (Diff >= std::chrono::seconds(RequestTimeout) && !Foreground && PollFDs.size() == 2) {
// If we aren't running in the foreground and we have no connections after a timeout
// Then we can just go ahead and leave
ShouldShutdown = true;