summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/gvfsfusedaemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/gvfsfusedaemon.c b/client/gvfsfusedaemon.c
index b59ab4ab..bc70b53c 100644
--- a/client/gvfsfusedaemon.c
+++ b/client/gvfsfusedaemon.c
@@ -311,9 +311,11 @@ reindex_file_handle_for_path (const gchar *old_path, const gchar *new_path)
(gpointer *) &fh))
goto out;
+ g_hash_table_steal (global_fh_table, old_path);
+
g_free (fh->path);
fh->path = g_strdup (new_path);
- g_hash_table_steal (global_fh_table, old_path);
+
g_hash_table_insert (global_fh_table, fh->path, fh);
out: