* loudmouth/lm-connection.c:
(_lm_connection_succeeded):
- Don't unref io_channel here as well, already done in do_close.
- Fixes LM-5, reported by Daniel Lavalliere.
(connection_do_close):
- Set fd to -1 to be sure it's not used again.
+2005-05-05 Mikael Hallendal <micke@imendio.com>
+
+ * loudmouth/lm-connection.c:
+ (_lm_connection_succeeded):
+ - Don't unref io_channel here as well, already done in do_close.
+ - Fixes LM-5, reported by Daniel Lavalliere.
+ (connection_do_close):
+ - Set fd to -1 to be sure it's not used again.
+
2005-05-05 Mikael Hallendal <micke@imendio.com>
* loudmouth/lm-ssl.c: (_lm_ssl_read):
close (connection->fd);
connection_do_close (connection);
- connection->fd = -1;
-
- g_io_channel_unref(connection->io_channel);
- connection->io_channel = NULL;
-
return FALSE;
}
}
g_io_channel_unref (connection->io_channel);
connection->io_channel = NULL;
+
+ connection->fd = -1;
}