mirror of
https://github.com/dart-lang/sdk
synced 2024-09-20 01:38:14 +00:00
Fix vmservice shutdown hang
fixes #28435 R=hausner@google.com Review-Url: https://codereview.chromium.org/2644683003 .
This commit is contained in:
parent
917a137a03
commit
665492a2e3
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue