From 50df2c4de7b3aa8bed8781c92afb9a635a01df3f Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Fri, 3 Feb 2012 09:10:21 +0100 Subject: [PATCH] Fix double lock https://bugzilla.gnome.org/show_bug.cgi?id=669292 --- server/inotify-helper.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/server/inotify-helper.c b/server/inotify-helper.c index d77203e..defa7c6 100644 --- a/server/inotify-helper.c +++ b/server/inotify-helper.c @@ -127,9 +127,6 @@ ih_sub_add (ih_sub_t * sub) gboolean ih_sub_cancel (ih_sub_t * sub) { - G_LOCK(inotify_lock); - - if (!sub->cancelled) { IH_W("cancelling %s\n", sub->pathname); @@ -140,7 +137,6 @@ ih_sub_cancel (ih_sub_t * sub) sub_list = g_list_remove (sub_list, sub); } - G_UNLOCK(inotify_lock); return TRUE; } -- 1.7.9