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

Unified Diff: tools/testing/dart/browser_controller.dart

Issue 23005022: Catch race condition where we are shutting down a browser and that browser is sending back results. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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: tools/testing/dart/browser_controller.dart
===================================================================
--- tools/testing/dart/browser_controller.dart (revision 26512)
+++ tools/testing/dart/browser_controller.dart (working copy)
@@ -654,9 +654,9 @@
return;
}
- if (status.timeout) {
+ if (status == null || status.timeout) {
// We don't do anything, this browser is currently being killed and
- // replaced.
+ // replaced. The browser here can be null if we decided to kill the browser
kustermann 2013/08/22 16:30:44 Yes, Yes: Long line rico!
} else if (status.currentTest != null) {
status.currentTest.timeoutTimer.cancel();
status.currentTest.stopwatch.stop();
« 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