From: short <> Date: Fri, 14 May 2004 06:54:34 +0000 (+0000) Subject: Fixed g_source_attach() error checking. X-Git-Tag: udpgate-1_0~66 X-Git-Url: http://git.jankratochvil.net/?p=udpgate.git;a=commitdiff_plain;h=9f6826e9f98486c66eb4e96f0502df4dc1f628d5 Fixed g_source_attach() error checking. --- diff --git a/src/network.c b/src/network.c index 39d8f8f..c42fab9 100644 --- a/src/network.c +++ b/src/network.c @@ -321,7 +321,7 @@ static gboolean sock_gsource_new(void) sock_source_callback, /* func */ NULL, /* data */ NULL); /* notify */ - if (g_source_attach( + if (!g_source_attach( /* returns 'guint' id */ sock_gsource, /* source */ NULL)) { /* context; NULL means 'default context' */ g_warning("g_source_attach(gsource,NULL): %m");