From 0f42c54f365d90192b57c62e6358d809d7f40774 Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Tue, 4 Oct 2016 10:40:23 -0700 Subject: [PATCH] fix unawaited future in screens off --- agent/lib/src/commands/ci.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/lib/src/commands/ci.dart b/agent/lib/src/commands/ci.dart index e25c793e45..96d2b27c9d 100644 --- a/agent/lib/src/commands/ci.dart +++ b/agent/lib/src/commands/ci.dart @@ -110,7 +110,7 @@ class ContinuousIntegrationCommand extends Command { Future _screensOff() async { try { for (Device device in await devices.discoverDevices()) { - device.sendToSleep(); + await device.sendToSleep(); } } catch(error, stackTrace) { // Best effort only.