Skip to content

Commit

Permalink
Merge pull request #4185 from asahilina/fix-autoshutdown-regression
Browse files Browse the repository at this point in the history
FEXServer: Fix auto-shutdown regression
  • Loading branch information
Sonicadvance1 authored Nov 29, 2024
2 parents b2e61c3 + 7c0cf51 commit 1b11f2f
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 1b11f2f

Please sign in to comment.