Commit 3c467a89 authored by Dan Rubel's avatar Dan Rubel Committed by GitHub

cleanup unawaited futures lints (#5946)

parent d65460e7
...@@ -175,7 +175,7 @@ class FlutterDriver { ...@@ -175,7 +175,7 @@ class FlutterDriver {
// At this point the service extension must be installed. Verify it. // At this point the service extension must be installed. Verify it.
Health health = await driver.checkHealth(); Health health = await driver.checkHealth();
if (health.status != HealthStatus.ok) { if (health.status != HealthStatus.ok) {
client.close(); await client.close();
throw new DriverError('Flutter application health check failed.'); throw new DriverError('Flutter application health check failed.');
} }
...@@ -371,11 +371,8 @@ Future<VMServiceClientConnection> _waitAndConnect(String url) async { ...@@ -371,11 +371,8 @@ Future<VMServiceClientConnection> _waitAndConnect(String url) async {
new rpc.Peer(new IOWebSocketChannel(ws2).cast())..listen() new rpc.Peer(new IOWebSocketChannel(ws2).cast())..listen()
); );
} catch(e) { } catch(e) {
if (ws1 != null) await ws1?.close();
ws1.close(); await ws2?.close();
if (ws2 != null)
ws2.close();
if (timer.elapsed < const Duration(seconds: 30)) { if (timer.elapsed < const Duration(seconds: 30)) {
_log.info('Waiting for application to start'); _log.info('Waiting for application to start');
......
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