Fix a race in Observable context destruction
Summary: In the subscribe callback It's possible that we lock the Context shared_ptr and while update is running, all other shared_ptr's are released. This will result in Context to be destroyed from the wrong thread (thread runnning subcribe callback), which is not desired. Reviewed By: yfeldblum Differential Revision: D4964605 fbshipit-source-id: 285327a6873ccb7393fa3067ba7e612c29dbc454
Showing
Please register or sign in to comment