Fix vmservice shutdown hang

fixes #28435

R=hausner@google.com

Review-Url: https://codereview.chromium.org/2644683003 .
This commit is contained in:
Zachary Anderson 2017-01-19 08:57:08 -08:00
parent 917a137a03
commit 665492a2e3

View file

@ -549,6 +549,9 @@ void ServiceIsolate::BootVmServiceLibrary() {
const Object& result = Object::Handle(
DartEntry::InvokeFunction(boot_function, Object::empty_array()));
ASSERT(!result.IsNull());
if (result.IsUnwindError() || result.IsUnhandledException()) {
Exceptions::PropagateError(Error::Cast(result));
}
Dart_Port port = ILLEGAL_PORT;
if (result.IsReceivePort()) {
port = ReceivePort::Cast(result).Id();