changeset 7234:cd0cedf0edd0

[gaim-migrate @ 7806] don't infiloop on failed file xfers committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 11 Oct 2003 01:58:59 +0000
parents a0801eac684d
children 03f22e564311
files src/protocols/jabber/oob.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/jabber/oob.c	Sat Oct 11 01:43:52 2003 +0000
+++ b/src/protocols/jabber/oob.c	Sat Oct 11 01:58:59 2003 +0000
@@ -19,6 +19,7 @@
  *
  */
 #include "internal.h"
+#include "debug.h"
 #include "ft.h"
 #include "util.h"
 
@@ -107,7 +108,11 @@
 			}
 		jox->newline = FALSE;
 		return 0;
+	} else {
+		gaim_debug(GAIM_DEBUG_ERROR, "jabber", "Read error on oob xfer!\n");
+		gaim_xfer_cancel_local(xfer);
 	}
+
 	return 0;
 }