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

Unified Diff: mojo/public/dart/mojo/lib/src/event_stream.dart

Issue 1411843005: Dart: Removes C++ set for closing handles on an unhandled exception. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Format Created 5 years, 2 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: mojo/public/dart/mojo/lib/src/event_stream.dart
diff --git a/mojo/public/dart/mojo/lib/src/event_stream.dart b/mojo/public/dart/mojo/lib/src/event_stream.dart
index 095564a9a4ebed0d70c594038984c8b537baeba5..a2c5f386d90d8b494ef279c5c4c2fa0546960535 100644
--- a/mojo/public/dart/mojo/lib/src/event_stream.dart
+++ b/mojo/public/dart/mojo/lib/src/event_stream.dart
@@ -31,7 +31,7 @@ class MojoEventStream extends Stream<List<int>> {
: _handle = handle,
_signals = signals,
_isListening = false {
- MojoResult result = MojoHandle.register(this);
+ MojoResult result = MojoHandle.registerFinalizer(this);
if (!result.isOk) {
throw "Failed to register the MojoHandle: $result.";
}

Powered by Google App Engine
This is Rietveld 408576698