mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 13:29:21 +03:00
Fix bug #3253090: don't schedule updates of the cookie tree
svn path=/trunk/netsurf/; revision=12141
This commit is contained in:
parent
af0583f8a7
commit
c3b7669ad4
@ -324,7 +324,7 @@ static struct node *cookies_create_cookie_node(struct node *parent,
|
||||
/**
|
||||
* Called when scheduled event gets fired. Actually performs the update.
|
||||
*/
|
||||
static void cookies_schedule_callback(void *scheduled_data)
|
||||
static void cookies_schedule_callback(const void *scheduled_data)
|
||||
{
|
||||
const struct cookie_data *data = scheduled_data;
|
||||
struct node *node = NULL;
|
||||
@ -412,7 +412,7 @@ bool cookies_schedule_update(const struct cookie_data *data)
|
||||
assert(user_delete == false);
|
||||
|
||||
if (cookies_tree_root != NULL)
|
||||
schedule(100, cookies_schedule_callback, (void *)data);
|
||||
cookies_schedule_callback(data);
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -424,7 +424,7 @@ void cookies_remove(const struct cookie_data *data)
|
||||
assert(data != NULL);
|
||||
|
||||
if (cookies_tree_root != NULL)
|
||||
schedule_remove(cookies_schedule_callback, (void *)data);
|
||||
cookies_schedule_callback(data);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user