mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-23 16:20:00 +00:00
commit
8d979000b5
@ -36,7 +36,7 @@ void AddOnDemandSocket(ServiceSocket *socketNode)
|
||||
|
||||
void RemoveOnDemandSocket(ServiceSocket *sockopt)
|
||||
{
|
||||
INIT_ERROR_CHECK(sockopt != NULL, return, "sockopt is NULL!");
|
||||
INIT_CHECK(sockopt != NULL, return);
|
||||
ServiceSocket *tmp = g_initWorkspace.serviceSocketNode;
|
||||
INIT_ERROR_CHECK(tmp != NULL, return, "tmp is NULL!");
|
||||
if (tmp->service == sockopt->service) {
|
||||
|
@ -180,8 +180,8 @@ void CancelTimer(TimerHandle timerHandle)
|
||||
LoopMutexLock(&timer->mutex);
|
||||
OH_ListRemove(&timer->node);
|
||||
OH_ListInit(&timer->node);
|
||||
free(timer);
|
||||
LoopMutexUnlock(&timer->mutex);
|
||||
free(timer);
|
||||
}
|
||||
|
||||
void LE_StopTimer(const LoopHandle loopHandle, const TimerHandle timer)
|
||||
|
Loading…
Reference in New Issue
Block a user