Skip to content

Commit

Permalink
A more sensible timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
lhecker committed Nov 26, 2024
1 parent 88a5302 commit 8682ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascadia/WindowsTerminal/WindowEmperor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static wil::unique_mutex acquireMutexOrAttemptHandoff(const wchar_t* className,
.cbData = gsl::narrow<DWORD>(payload.size()),
.lpData = payload.data(),
};
if (SendMessageTimeoutW(hwnd, WM_COPYDATA, 0, reinterpret_cast<LPARAM>(&cds), SMTO_ABORTIFHUNG | SMTO_ERRORONEXIT, 10000000, nullptr))
if (SendMessageTimeoutW(hwnd, WM_COPYDATA, 0, reinterpret_cast<LPARAM>(&cds), SMTO_ABORTIFHUNG | SMTO_ERRORONEXIT, 5000, nullptr))
{
return {};
}
Expand Down

0 comments on commit 8682ae1

Please sign in to comment.