Fix broken ManualExecutor
[folly.git] / folly / futures / QueuedImmediateExecutor.cpp
index 47b298f5dcb420d57b0cc4f7ed547874a30b76c1..204d424b0e77e5a82de619923088f2c1619f6991 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ void QueuedImmediateExecutor::addStatic(Func callback) {
       q_->pop();
     }
   } else {
-    q_->push(callback);
+    q_->push(std::move(callback));
   }
 }