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

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/isolate_view.dart

Issue 308673012: Redo LocationManager to use HTML5 History API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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: runtime/bin/vmservice/client/lib/src/elements/isolate_view.dart
diff --git a/runtime/bin/vmservice/client/lib/src/elements/isolate_view.dart b/runtime/bin/vmservice/client/lib/src/elements/isolate_view.dart
index 582c9eef83c37135ee1941f57813b471cf670327..c55b1d1adeeb42f8b9e854cada076dbe4ee30ab6 100644
--- a/runtime/bin/vmservice/client/lib/src/elements/isolate_view.dart
+++ b/runtime/bin/vmservice/client/lib/src/elements/isolate_view.dart
@@ -92,8 +92,10 @@ class IsolateViewElement extends ObservatoryElement {
isolate.updateTagProfile().then((tagProfile) {
tagProfileChart.update(tagProfile);
_drawTagProfileChart();
- // Start the timer again.
- _updateTimer = new Timer(new Duration(seconds: 1), _updateTagProfile);
+ if (_updateTimer != null) {
+ // Start the timer again.
+ _updateTimer = new Timer(new Duration(seconds: 1), _updateTagProfile);
+ }
});
}
@@ -107,6 +109,7 @@ class IsolateViewElement extends ObservatoryElement {
super.leftView();
if (_updateTimer != null) {
_updateTimer.cancel();
+ _updateTimer = null;
}
}

Powered by Google App Engine
This is Rietveld 408576698