Index: runtime/vm/native_api_impl.cc |
diff --git a/runtime/vm/native_api_impl.cc b/runtime/vm/native_api_impl.cc |
index 1bc5d4c2305f1d2287cd453a3914ea8fae786e74..7abd52e0ccc917aa39b30d2d4be9b59bbed2061e 100644 |
--- a/runtime/vm/native_api_impl.cc |
+++ b/runtime/vm/native_api_impl.cc |
@@ -90,6 +90,7 @@ DART_EXPORT Dart_Port Dart_NewNativePort(const char* name, |
NativeMessageHandler* nmh = new NativeMessageHandler(name, handler); |
Dart_Port port_id = PortMap::CreatePort(nmh); |
+ PortMap::SetPortState(port_id, PortMap::kLivePort); |
nmh->Run(Dart::thread_pool(), NULL, NULL, 0); |
return port_id; |
} |