Fix crash when running widget example

Dart_IsolateMakeRunnable was returning false, which can indicate that the
isolate was already running. This patch seems harmless, but I'll follow up to
understand more about what's happening here.

Fixes #2383
This commit is contained in:
Adam Barth 2016-03-03 16:45:00 -08:00
parent 0b3475f4ad
commit 962597e0f5

View File

@ -59,7 +59,7 @@ bool DartController::SendStartMessage(Dart_Handle root_library) {
Dart_Isolate isolate = dart_state()->isolate();
DCHECK(Dart_CurrentIsolate() == isolate);
Dart_ExitIsolate();
CHECK(Dart_IsolateMakeRunnable(isolate));
Dart_IsolateMakeRunnable(isolate);
Dart_EnterIsolate(isolate);
}