Skip to content

Commit

Permalink
FEXServer: Fix auto-shutdown regression
Browse files Browse the repository at this point in the history
Fixes: #4184
  • Loading branch information
asahilina committed Nov 29, 2024
1 parent 649a494 commit 7c0cf51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Tools/FEXServer/ProcessPipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7c0cf51

Please sign in to comment.