Index: libsoup/soup-message-io.c
===================================================================
RCS file: /cvs/gnome/libsoup/libsoup/soup-message-io.c,v
retrieving revision 1.26
diff -p -u -r1.26 soup-message-io.c
--- libsoup/soup-message-io.c	10 Apr 2006 18:09:01 -0000	1.26
+++ libsoup/soup-message-io.c	24 May 2006 17:29:57 -0000
@@ -551,7 +551,10 @@ io_read (SoupSocket *sock, SoupMessage *
 	SoupMessageIOData *io = priv->io_data;
 	guint status;
 
-	g_return_if_fail (io->read_state != SOUP_MESSAGE_IO_STATE_DONE);
+	if (io->read_state == SOUP_MESSAGE_IO_STATE_DONE) {
+		/* notice that connection will close */
+		return;
+	}
 
  read_more:
 	switch (io->read_state) {
