fix an issue where the refresh benchmark would overwrite a completer (#4315)

This commit is contained in:
Devon Carew
2016-06-01 19:57:08 -07:00
parent 6d4fd85054
commit bc5d407477

View File

@@ -83,7 +83,7 @@ class Observatory {
if (isolates.isNotEmpty)
return isolates.first;
_waitFirstIsolateCompleter = new Completer<IsolateRef>();
_waitFirstIsolateCompleter ??= new Completer<IsolateRef>();
getVM().then((VM vm) {
for (IsolateRef isolate in vm.isolates)