Re: [PATCH] Don't reset time on sent events



On Wed, 2004-10-06 at 12:13 +0200, Christophe Fergeau wrote:
> Looks like you attached the wrong patch ;)
> 
> Cheers,
> 
> Christophe

Yeah, damn :p
Here's the right one.

Martin

? .cdtproject
? .project
? imported/Makefile
? imported/Makefile.in
? imported/neon/Makefile.in
? libgnomevfs/s-enum-types-c
? libgnomevfs/s-enum-types-h
? modules/extfs/Makefile
? modules/extfs/Makefile.in
? modules/extfs/ar
? modules/extfs/cpio
? modules/extfs/deb
? modules/extfs/lha
? modules/extfs/rar
? modules/extfs/zip
? modules/extfs/zoo
? test/test-dns-sd
? test/test-mime-info-cache
? test/vfs-test.out
Index: libgnomevfs/gnome-vfs-monitor.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-monitor.c,v
retrieving revision 1.11
diff -u -p -r1.11 gnome-vfs-monitor.c
--- libgnomevfs/gnome-vfs-monitor.c	20 Jul 2004 21:46:40 -0000	1.11
+++ libgnomevfs/gnome-vfs-monitor.c	6 Oct 2004 05:44:53 -0000
@@ -331,7 +331,8 @@ send_uri_changes_now (GnomeVFSMonitorHan
 	l = monitor_handle->pending_callbacks;
 	while (l != NULL) {
 		callback_data = l->data;
-		if (strcmp (callback_data->info_uri, uri) == 0) {
+		if (callback_data->send_state != CALLBACK_STATE_SENT &&
+		    strcmp (callback_data->info_uri, uri) == 0) {
 			callback_data->send_at = now;
 		}
 		l = l->next;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]