diff src/lstream.c @ 2383:9c7decce1d05

[xemacs-hg @ 2004-11-12 17:16:27 by james] Don't call the flusher if the writer returned an error.
author james
date Fri, 12 Nov 2004 17:16:30 +0000
parents ecf1ebac70d8
children 3d8143fc88e1
line wrap: on
line diff
--- a/src/lstream.c	Fri Nov 12 15:09:18 2004 +0000
+++ b/src/lstream.c	Fri Nov 12 17:16:30 2004 +0000
@@ -385,7 +385,7 @@
 	}
     }
 
-  if (lstr->imp->flusher)
+  if (!error_occurred && lstr->imp->flusher)
     error_occurred = (lstr->imp->flusher) (lstr) < 0;
 
   if (data == orig_data && error_occurred)