| Index: mojo/edk/system/core.cc
|
| diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc
|
| index 69c918c0be8b50df111abb11646daac1a610a3b9..d3543061003fb035d5b9d2f88b677aeae43fdc21 100644
|
| --- a/mojo/edk/system/core.cc
|
| +++ b/mojo/edk/system/core.cc
|
| @@ -87,7 +87,8 @@ void Core::AddChild(base::ProcessHandle process_handle,
|
| }
|
|
|
| void Core::InitChild(ScopedPlatformHandle platform_handle) {
|
| - GetNodeController()->ConnectToParent(std::move(platform_handle));
|
| + if (platform_handle.is_valid())
|
| + GetNodeController()->ConnectToParent(std::move(platform_handle));
|
| }
|
|
|
| MojoHandle Core::AddDispatcher(scoped_refptr<Dispatcher> dispatcher) {
|
|
|