| Index: mojo/shell/public/cpp/lib/shell_connection.cc
|
| diff --git a/mojo/shell/public/cpp/lib/shell_connection.cc b/mojo/shell/public/cpp/lib/shell_connection.cc
|
| index d1cba7ea31e040427ad194fdf369945085bf2962..62ae598222c360c3c9e78c70d816007505326dc8 100644
|
| --- a/mojo/shell/public/cpp/lib/shell_connection.cc
|
| +++ b/mojo/shell/public/cpp/lib/shell_connection.cc
|
| @@ -86,7 +86,8 @@ void ShellConnection::OnConnectionError() {
|
| // Note that the ShellClient doesn't technically have to quit now, it may live
|
| // on to service existing connections. All existing Connectors however are
|
| // invalid.
|
| - client_->ShellConnectionLost();
|
| + if (client_->ShellConnectionLost() && !connection_lost_closure_.is_null())
|
| + connection_lost_closure_.Run();
|
| // We don't reset the connector as clients may have taken a raw pointer to it.
|
| // Connect() will return nullptr if they try to connect to anything.
|
| }
|
|
|