diff --git a/core/adapter/syscall/src/hdf_syscall_adapter.c b/core/adapter/syscall/src/hdf_syscall_adapter.c index d84ea86342590e0c474221b3f6c5b06e64ba0307..d389783192f3c666b04d32ab1511409288623237 100644 --- a/core/adapter/syscall/src/hdf_syscall_adapter.c +++ b/core/adapter/syscall/src/hdf_syscall_adapter.c @@ -441,12 +441,12 @@ static int32_t HdfDevListenerThreadStart(struct HdfDevListenerThread *thread) .stackSize = 0, }; + thread->status = LISTENER_STARTED; if (OsalThreadStart(&thread->thread, &config) != HDF_SUCCESS) { HDF_LOGE("%s:OsalThreadStart failed", __func__); ret = HDF_FAILURE; break; } - thread->status = LISTENER_STARTED; return HDF_SUCCESS; } while (0);