diff --git a/interfaces/plugin/src/sensor_js.cpp b/interfaces/plugin/src/sensor_js.cpp index 1f374d97808c594afd92df02ffef0345a0d57cbb..e10d28e4321d96f702905b1271c8627c7526404b 100644 --- a/interfaces/plugin/src/sensor_js.cpp +++ b/interfaces/plugin/src/sensor_js.cpp @@ -147,7 +147,7 @@ static void EmitOnceCallback(SensorEvent *event) SEN_HILOGE("Copy sensor data failed"); continue; } - EmitUvEventLoop(onceCallbackInfo); + EmitUvEventLoop(std::move(onceCallbackInfo)); } g_onceCallbackInfos.erase(sensorTypeId);