Fabric: Lost comment in EventQueue

Summary: Just a comment.

Reviewed By: JoshuaGross

Differential Revision: D13962465

fbshipit-source-id: 31780a8ccf02d768e3d4b91e7205ceb0ee10fedf
This commit is contained in:
Valentin Shergin 2019-02-06 16:12:45 -08:00 committed by Facebook Github Bot
parent 2332cb6fe2
commit b0c8275369
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ void EventQueue::onBeat(jsi::Runtime &runtime) const {
}
// No need to lock `EventEmitter::DispatchMutex()` here.
// The mutex protects from a situation when the `instanceHandle` can be
// deallocated during accessing, but that's impossible at this point because
// we have a strong pointer to it.
for (const auto &event : queue) {
if (event.eventTarget) {
event.eventTarget->release(runtime);