mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Set scheduler delegate during construction
Summary: I think it's possible that there's a race condition between creating the scheduler and setting the delegate leading to bugs like T47272192. Reviewed By: mdvacca Differential Revision: D16537737 fbshipit-source-id: 9c579537658be5a9aeed37c0e4935c997cabb6aa
This commit is contained in:
committed by
Facebook Github Bot
parent
44be1f1516
commit
62591ac840
@@ -229,8 +229,7 @@ void Binding::installFabricUIManager(
|
||||
toolbox.runtimeExecutor = runtimeExecutor;
|
||||
toolbox.synchronousEventBeatFactory = synchronousBeatFactory;
|
||||
toolbox.asynchronousEventBeatFactory = asynchronousBeatFactory;
|
||||
scheduler_ = std::make_shared<Scheduler>(toolbox);
|
||||
scheduler_->setDelegate(this);
|
||||
scheduler_ = std::make_shared<Scheduler>(toolbox, this);
|
||||
}
|
||||
|
||||
void Binding::uninstallFabricUIManager() {
|
||||
|
||||
Reference in New Issue
Block a user