Index: remoting/host/remoting_me2me_host.cc |
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc |
index a80ef55b04ccd02ee409911c4d40f500a6f1d17d..f268010057645876824ac8ddae4c4516bfa1932c 100644 |
--- a/remoting/host/remoting_me2me_host.cc |
+++ b/remoting/host/remoting_me2me_host.cc |
@@ -864,9 +864,7 @@ void HostProcess::StartOnUiThread() { |
if (!InitWithCommandLine(base::CommandLine::ForCurrentProcess())) { |
// Shutdown the host if the command line is invalid. |
- context_->network_task_runner()->PostTask( |
- FROM_HERE, base::Bind(&HostProcess::ShutdownHost, this, |
- kUsageExitCode)); |
+ ShutdownOnUiThread(); |
return; |
} |