!45 fix IoService listener register issue

Merge pull request !45 from yuanbo/master
This commit is contained in:
openharmony_ci
2021-05-19 17:38:35 +08:00
committed by Gitee
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
* @addtogroup Core
* @{
*
* @brief Provides functions to use the HarmonyOS Driver Foundation (HDF).
* @brief Provides functions to use the OpenHarmonyOS Driver Foundation (HDF).
*
* The HDF implements driver framework capabilities such as driver loading, service management, driver message model,
* and power management.
@@ -799,7 +799,6 @@ int32_t HdfDeviceRegisterEventListener(struct HdfIoService *target, struct HdfDe
if (adapter->group != NULL) {
/* Do not bind any service in a service goup to its own thread or start the group thread. */
ret = HdfIoServiceGroupThreadStart(adapter->group);
DListRemove(&listener->listNode);
OsalMutexUnlock(&adapter->mutex);
return ret;
}