transport_message * msg = NULL;
while ( (msg = client_recv(class->jabber->t_client, 0)) != NULL ) {
+ debug_handler( "Looping on messages to dead class" );
server_class_handle_msg(router, class, msg);
message_free(msg);
}
class->server_class = NULL;
find_server_class( router, router_resource ); /* find deletes for us */
+ debug_handler( "Successfuly called 'find_server_class' on class to delete" );
if( router->server_class_list == NULL )
return 0;
class = class->next;
}
+ debug_handler( "Returning NULL from find_server_class()" );
return NULL;
}
message_free( msg );
remove_server_class( router, s_node );
+ debug_handler( "Successfully removed server class" );
return -1;
}