runImmediatly fix
[folly.git] / folly / io / async / EventBase.cpp
index 5ff171eb2c3f7c043ceb04ee03b7df8793cf4e42..b6cd8ca120a7a4e5fd872a71e9a7eab19d7577af 100644 (file)
@@ -611,7 +611,7 @@ bool EventBase::runInEventBaseThreadAndWait(const Cob& fn) {
 }
 
 bool EventBase::runImmediatelyOrRunInEventBaseThreadAndWait(const Cob& fn) {
-  if (inRunningEventBaseThread()) {
+  if (isInEventBaseThread()) {
     fn();
     return true;
   } else {