Skip to content
Snippets Groups Projects
Commit 56249d65 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#6183: Fix removing call from calllist

parent 347749b8
Branches
Tags
No related merge requests found
......@@ -182,17 +182,32 @@ calllist_remove_from_history (callable_obj_t* c)
{
calllist_remove_call (history, c->_callID);
calltree_remove_call (history, c, NULL);
DEBUG ("CallList: Size of history = %i" , calllist_get_size (history));
DEBUG ("CallList: Size of history = %d" , calllist_get_size (history));
}
void
calllist_remove_call (calltab_t* tab, const gchar * callID)
{
callable_obj_t * c = calllist_get_call (tab, callID);
QueueElement *element;
GList *c;
DEBUG("CallList: Remove call %s from list", callID);
if (c) {
g_queue_remove (tab->callQueue, c);
c = g_queue_find_custom (tab->callQueue, callID, is_callID_callstruct);
// c = calllist_get_call (tab, callID);
if(c == NULL) {
DEBUG("CallList: Could not remove call %s", callID);
return;
}
element = (QueueElement *)c->data;
if(element->type != HIST_CALL) {
ERROR("CallList: Error: Element %s is not a call", callID);
return;
}
g_queue_remove (tab->callQueue, element);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment