pr feedback

This commit is contained in:
Ben Hillis 2026-01-23 12:04:44 -08:00
parent b79b8ce429
commit 041dd4ebfb

View File

@ -61,7 +61,13 @@ try
// Ensure that the other end of the pipe has connected if required.
if (connectPipe)
{
wsl::windows::common::helpers::ConnectPipe(pipe.get(), (15 * 1000), {exitEvent.get()});
std::vector<HANDLE> exitEvents;
if (exitEvent)
{
exitEvents.push_back(exitEvent.get());
}
wsl::windows::common::helpers::ConnectPipe(pipe.get(), (15 * 1000), exitEvents);
}
// Perform the requested operation.