diff options
| -rw-r--r-- | cmds/lshal/Timeout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/lshal/Timeout.h b/cmds/lshal/Timeout.h index bf883c0a4c..001c3d6790 100644 --- a/cmds/lshal/Timeout.h +++ b/cmds/lshal/Timeout.h @@ -69,7 +69,7 @@ timeoutIPC(const sp<I> &interfaceObject, Function &&func, Args &&... args) { auto boundFunc = std::bind(std::forward<Function>(func), interfaceObject.get(), std::forward<Args>(args)...); bool success = timeout(IPC_CALL_WAIT, [&ret, &boundFunc] { - ret = boundFunc(); + ret = std::move(boundFunc()); }); if (!success) { return Status::fromStatusT(TIMED_OUT); |