Commit 4029390b authored by Jürg Billeter's avatar Jürg Billeter

libtracker-common: Always set last_time in D-Bus client data

parent eed4f205
......@@ -301,21 +301,18 @@ client_get_for_context (DBusGMethodInvocation *context)
if (G_UNLIKELY (!clients)) {
clients_init ();
}
cd = g_hash_table_lookup (clients, sender);
if (!cd) {
cd = client_data_new (sender);
g_hash_table_insert (clients, sender, cd);
} else {
cd = g_hash_table_lookup (clients, sender);
if (G_UNLIKELY (!cd)) {
cd = client_data_new (sender);
g_hash_table_insert (clients, sender, cd);
} else {
g_get_current_time (&cd->last_time);
g_free (sender);
}
g_free (sender);
}
g_get_current_time (&cd->last_time);
return cd;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment