Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Unified Diff: remoting/host/setup/me2me_native_messaging_host_main.cc

Issue 2679293002: Fix TaskScheduler initialization in remoting processes. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/host/setup/me2me_native_messaging_host_main.cc
diff --git a/remoting/host/setup/me2me_native_messaging_host_main.cc b/remoting/host/setup/me2me_native_messaging_host_main.cc
index 70eaa02af7e7c585390e631b54a5942bbafd3e81..f94b2c5ea2c9292a7f82e3be99ae5c95c69cad22 100644
--- a/remoting/host/setup/me2me_native_messaging_host_main.cc
+++ b/remoting/host/setup/me2me_native_messaging_host_main.cc
@@ -269,6 +269,10 @@ int Me2MeNativeMessagingHostMain(int argc, char** argv) {
// Run the loop until channel is alive.
run_loop.Run();
+
+ // Block until tasks blocking shutdown have completed their execution.
+ base::TaskScheduler::GetInstance()->Shutdown();
+
return kSuccessExitCode;
}
« remoting/client/jni/chromoting_jni_runtime.cc ('K') | « remoting/host/remoting_me2me_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698