Skip to content

Commit

Permalink
[vm] Ensure we wait for the service-isolate to boot-up before communi…
Browse files Browse the repository at this point in the history
…cating with it

Change-Id: Iaa099faa7cb560e25c90a045d518c6c07a4c54cd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/111428
Reviewed-by: Clement Skau <[email protected]>
Commit-Queue: Martin Kustermann <[email protected]>
  • Loading branch information
mkustermann authored and [email protected] committed Jul 31, 2019
1 parent d3fbbf8 commit cdf56d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/vm/service_isolate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ bool ServiceIsolate::SendServiceRpc(uint8_t* request_json,
request.value.as_array.values = request_array;
request.value.as_array.length = ARRAY_SIZE(request_array);

ServiceIsolate::WaitForLoadPort();
return Dart_PostCObject(ServiceIsolate::Port(), &request);
}

Expand Down

0 comments on commit cdf56d7

Please sign in to comment.