From 9ff0c256ae51f2039abc36940618a5d9fe5e6ba7 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 19 Dec 2011 21:46:01 +0100 Subject: Catch condition=G_IO_NVAL from glib's event handler, which should prevent some crashes on unclean shutdowns of connections. --- lib/events_glib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/events_glib.c b/lib/events_glib.c index 3fafc872..8f53fbbf 100644 --- a/lib/events_glib.c +++ b/lib/events_glib.c @@ -74,6 +74,9 @@ static gboolean gaim_io_invoke(GIOChannel *source, GIOCondition condition, gpoin GaimIOClosure *closure = data; b_input_condition gaim_cond = 0; gboolean st; + + if (condition & G_IO_NVAL) + return FALSE; if (condition & GAIM_READ_COND) gaim_cond |= B_EV_IO_READ; -- cgit v1.2.3