Commit 8aac1c99 authored by Yegor Jbanov's avatar Yegor Jbanov

[driver] actually start the timer when connecting

parent 2988cab7
......@@ -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