Unverified Commit 80813369 authored by Dan Field's avatar Dan Field Committed by GitHub

Fix red tree (#22432)

* fix race in devicelab concurrent hot reload

* only complete future once!
parent 2c610673
...@@ -65,7 +65,7 @@ void main() { ...@@ -65,7 +65,7 @@ void main() {
} else if (json != null && json['event'] == 'app.started') { } else if (json != null && json['event'] == 'app.started') {
appId = json['params']['appId']; appId = json['params']['appId'];
} }
if (vmServicePort != null && appId != null) { if (vmServicePort != null && appId != null && !ready.isCompleted) {
print('run: ready!'); print('run: ready!');
ready.complete(); ready.complete();
ok ??= true; ok ??= true;
......
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