Index: sdk/lib/io/socket_stream_impl.dart |
diff --git a/sdk/lib/io/socket_stream_impl.dart b/sdk/lib/io/socket_stream_impl.dart |
index 7770932bac69623384ba85e9dd62f11102c7907a..d156bd7e6f450fd1410c8ad336ed8a80825508b0 100644 |
--- a/sdk/lib/io/socket_stream_impl.dart |
+++ b/sdk/lib/io/socket_stream_impl.dart |
@@ -102,7 +102,7 @@ class _SocketOutputStream |
_socket._closeWrite(); |
_closed = true; |
// Invoke the callback asynchronously. |
- new Timer(0, (t) { |
+ Timer.run(() { |
if (_onClosed != null) _onClosed(); |
}); |
} |