From 8aac1c996cc59b37e06311c02efc53cbfa57d447 Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Fri, 18 Mar 2016 14:38:34 -0700 Subject: [PATCH] [driver] actually start the timer when connecting --- packages/flutter_driver/lib/src/driver.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_driver/lib/src/driver.dart b/packages/flutter_driver/lib/src/driver.dart index 59fd3b33dfb..aaedbd12dc3 100644 --- a/packages/flutter_driver/lib/src/driver.dart +++ b/packages/flutter_driver/lib/src/driver.dart @@ -312,7 +312,7 @@ void restoreVmServiceConnectFunction() { /// /// Times out after 30 seconds. Future _waitAndConnect(String url) async { - Stopwatch timer = new Stopwatch(); + Stopwatch timer = new Stopwatch()..start(); Future attemptConnection() { return VMServiceClient.connect(url) .catchError((dynamic e) async {