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

Unified Diff: mojo/runner/child_process.cc

Issue 1139973002: Make mojo_shell_child not crash when done (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/child_process.cc
diff --git a/mojo/runner/child_process.cc b/mojo/runner/child_process.cc
index d16c2d7cd9ed157e34fd6ca4bf9093cd96d10c28..74539a28aeb79e080398c81465f83bcaead9c4df 100644
--- a/mojo/runner/child_process.cc
+++ b/mojo/runner/child_process.cc
@@ -66,7 +66,8 @@ class Blocker {
void Block() {
DCHECK(run_after_.is_null());
event_.Wait();
- run_after_.Run();
+ if (!run_after_.is_null())
+ run_after_.Run();
}
Unblocker GetUnblocker() { return Unblocker(this); }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698