Skip to content

Commit 05fa8a2

Browse files
otmeta-codesync[bot]
authored andcommitted
Fix MuxIOThreadPoolExecutor::removeObserver re-adding the observer
Summary: `removeObserver()` called `ThreadPoolExecutor::addObserver()` instead of `removeObserver()`, so removing an observer actually re-registered it. Reviewed By: uvdn7 Differential Revision: D113780925 fbshipit-source-id: b809ee19c2aeafb41268a02b628b3192a695408c
1 parent 9786278 commit 05fa8a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

folly/io/async/MuxIOThreadPoolExecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void MuxIOThreadPoolExecutor::maybeUnregisterEventBases(Observer* o) {
233233

234234
void MuxIOThreadPoolExecutor::removeObserver(std::shared_ptr<Observer> o) {
235235
maybeUnregisterEventBases(o.get());
236-
ThreadPoolExecutor::addObserver(std::move(o));
236+
ThreadPoolExecutor::removeObserver(std::move(o));
237237
}
238238

239239
std::vector<folly::Executor::KeepAlive<folly::EventBase>>

0 commit comments

Comments
 (0)