on avance....
This commit is contained in:
parent
47cc4a9f83
commit
ce5835b285
1 changed files with 3 additions and 1 deletions
|
@ -10,12 +10,14 @@ int msgQueueElemDelete(msgQueueElemId queueElemId){
|
||||||
goto ERROR;
|
goto ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strcpy(nextIdToDie, queueElemAddr->next);
|
||||||
|
|
||||||
if (msgQueueElemClose(queueElemAddr) < 0){
|
if (msgQueueElemClose(queueElemAddr) < 0){
|
||||||
NZG_ERROR("msgQueueElemClose",queueElemId);
|
NZG_ERROR("msgQueueElemClose",queueElemId);
|
||||||
goto ERROR;
|
goto ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nextIdToDie != NULL){
|
if (nextIdToDie != queueElemId){
|
||||||
return msgQueueElemDelete(nextIdToDie);
|
return msgQueueElemDelete(nextIdToDie);
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue