mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
[driver] actually start the timer when connecting
This commit is contained in:
parent
2988cab732
commit
8aac1c996c
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue