remove double g_source_attach()
authorThorsten Maerz <torte@netztorte.de>
Tue, 27 Jan 2004 22:57:05 +0000 (22:57 +0000)
committerThorsten Maerz <torte@netztorte.de>
Tue, 27 Jan 2004 22:57:05 +0000 (22:57 +0000)
ChangeLog-gtk2
src/common/socket.c

index d453dde..b48c3dd 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-27 Thorsten Maerz <torte@netztorte.de>
+       * src/socket.c
+               remove double g_source_attach()
+               (Thanks to Colin Leroy)
+
 2004-01-27 Thorsten Maerz <torte@netztorte.de>
        * src/gtk/gtksctree.c
                Fix SSL certificate list not shown
index 9b1b620..4f85e93 100644 (file)
@@ -352,7 +352,7 @@ guint sock_add_watch(SockInfo *sock, GIOCondition condition, SockFunc func,
                g_source_set_priority(source, G_PRIORITY_DEFAULT);
                g_source_set_can_recurse(source, FALSE);
                sock->g_source = g_source_attach(source, NULL);
-               return g_source_attach(source, NULL);
+               return sock->g_source;
        }
 #endif