Fix red tree (#22432)

* fix race in devicelab concurrent hot reload

* only complete future once!
This commit is contained in:
Dan Field
2018-09-28 09:43:42 -07:00
committed by GitHub
parent 2c61067387
commit 8081336966

View File

@@ -65,7 +65,7 @@ void main() {
} else if (json != null && json['event'] == 'app.started') {
appId = json['params']['appId'];
}
if (vmServicePort != null && appId != null) {
if (vmServicePort != null && appId != null && !ready.isCompleted) {
print('run: ready!');
ready.complete();
ok ??= true;