mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #2791 from yjbanov/start-driver-timer
[driver] actually start the timer when connecting
This commit is contained in:
commit
8ffd80c095
@ -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…
x
Reference in New Issue
Block a user