summaryrefslogtreecommitdiffstats
path: root/mojo/shell/public/cpp/lib/shell_connection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/shell/public/cpp/lib/shell_connection.cc')
-rw-r--r--mojo/shell/public/cpp/lib/shell_connection.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/mojo/shell/public/cpp/lib/shell_connection.cc b/mojo/shell/public/cpp/lib/shell_connection.cc
index 62ae598..d1cba7e 100644
--- a/mojo/shell/public/cpp/lib/shell_connection.cc
+++ b/mojo/shell/public/cpp/lib/shell_connection.cc
@@ -86,8 +86,7 @@ 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.
- if (client_->ShellConnectionLost() && !connection_lost_closure_.is_null())
- connection_lost_closure_.Run();
+ client_->ShellConnectionLost();
// 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.
}