Commit 8ffd80c0 authored by Yegor's avatar Yegor

Merge pull request #2791 from yjbanov/start-driver-timer

[driver] actually start the timer when connecting
parents 2988cab7 8aac1c99
......@@ -312,7 +312,7 @@ void restoreVmServiceConnectFunction() {
///
/// Times out after 30 seconds.
Future<VMServiceClient> _waitAndConnect(String url) async {
Stopwatch timer = new Stopwatch();
Stopwatch timer = new Stopwatch()..start();
Future<VMServiceClient> attemptConnection() {
return VMServiceClient.connect(url)
.catchError((dynamic e) async {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment