| Index: mojo/edk/embedder/named_platform_handle_utils_win.cc
|
| diff --git a/mojo/edk/embedder/named_platform_handle_utils_win.cc b/mojo/edk/embedder/named_platform_handle_utils_win.cc
|
| index 1a602d1a4c74559dd92f4f5e1cd2ba68b05c76a4..a145847fd04e592d11baa4c510a8436e45abe05e 100644
|
| --- a/mojo/edk/embedder/named_platform_handle_utils_win.cc
|
| +++ b/mojo/edk/embedder/named_platform_handle_utils_win.cc
|
| @@ -49,7 +49,12 @@ ScopedPlatformHandle CreateClientHandle(
|
| 0, // No sharing.
|
| nullptr, OPEN_EXISTING, kFlags,
|
| nullptr))); // No template file.
|
| - PCHECK(handle.is_valid());
|
| + // The server may have stopped accepting a connection between the
|
| + // WaitNamedPipe() and CreateFile(). If this occurs, an invalid handle is
|
| + // returned.
|
| + DPLOG_IF(ERROR, !handle.is_valid())
|
| + << "Named pipe " << named_handle.pipe_name()
|
| + << " could not be opened after WaitNamedPipe succeeded";
|
| return handle;
|
| }
|
|
|
|
|