Index: runtime/bin/http_impl.dart |
diff --git a/runtime/bin/http_impl.dart b/runtime/bin/http_impl.dart |
index dc36276275bf2009cbdb2ba7adc117f58a73134a..4bc975f9a5828037b58bd27b32ae77cd927ff6dc 100644 |
--- a/runtime/bin/http_impl.dart |
+++ b/runtime/bin/http_impl.dart |
@@ -1062,7 +1062,7 @@ class _HttpClient implements HttpClient { |
} else { |
_SocketConnection socketConn = socketConnections.removeFirst(); |
_activeSockets.add(socketConn); |
- new Timer((ignored) => _connectionOpened(socketConn, connection), 0); |
+ new Timer(0, (ignored) => _connectionOpened(socketConn, connection)); |
// Get rid of eviction timer if there are no more active connections. |
if (socketConnections.isEmpty()) { |
@@ -1109,7 +1109,7 @@ class _HttpClient implements HttpClient { |
} |
}); |
} |
- _evictionTimer = new Timer.repeating(_handleEviction, 10000); |
+ _evictionTimer = new Timer.repeating(10000, _handleEviction); |
} |
// Return connection. |