Blob Blame History Raw
Index: server/gam_connection.c
===================================================================
RCS file: /cvs/gnome/gamin/server/gam_connection.c,v
retrieving revision 1.27
diff -u -r1.27 gam_connection.c
--- server/gam_connection.c	10 Sep 2005 10:46:57 -0000	1.27
+++ server/gam_connection.c	20 Sep 2005 15:10:57 -0000
@@ -387,7 +387,7 @@
 	    gam_listener_remove_subscription(conn->listener, sub);
 	    gam_remove_subscription(sub);
 #ifdef ENABLE_INOTIFY
-	    if (gam_inotify_is_running())
+	    if ((gam_inotify_is_running()) && (!gam_exclude_check(path)))
 		gam_subscription_free(sub);
 #endif
 
@@ -396,7 +396,8 @@
 			  gam_connection_get_pid(conn));
 	    }
 	    g_free(path);
-        }   break;
+	    break;
+        }   
         case GAM_REQ_DEBUG:
 #ifdef GAMIN_DEBUG_API
 	    gam_debug_add(conn, req->path, options);