pidgin.vv: 9a71011a: Move accepted signal emission to after i...

maiku at soc.pidgin.im maiku at soc.pidgin.im
Fri Mar 20 04:35:48 EDT 2009


-----------------------------------------------------------------
Revision: 9a71011ad35e41fa85cf6eefed7d5ad818ec2b1f
Ancestor: bce7615109967972375e76c0c9c0cd0e70f057e6
Author: maiku at soc.pidgin.im
Date: 2009-03-19T23:26:20
Branch: im.pidgin.pidgin.vv
URL: http://d.pidgin.im/viewmtn/revision/info/9a71011ad35e41fa85cf6eefed7d5ad818ec2b1f

Modified files:
        libpurple/media.c

ChangeLog: 

Move accepted signal emission to after it's set to accepted.

-------------- next part --------------
============================================================
--- libpurple/media.c	ac8914be8c32e09fec3d47c1cf31103f55a1f2fc
+++ libpurple/media.c	8267805228f68b38efe6ba9880904187b788b264
@@ -1450,8 +1450,6 @@ purple_media_accept(PurpleMedia *media)
 
 	g_return_if_fail(PURPLE_IS_MEDIA(media));
 
-	g_signal_emit(media, purple_media_signals[ACCEPTED],
-			0, NULL, NULL);
 	streams = media->priv->streams;
 
 	for (; streams; streams = g_list_next(streams)) {
@@ -1462,6 +1460,9 @@ purple_media_accept(PurpleMedia *media)
 		stream->accepted = TRUE;
 	}
 
+	g_signal_emit(media, purple_media_signals[ACCEPTED],
+			0, NULL, NULL);
+
 	sessions = g_hash_table_get_values(media->priv->sessions);
 
 	for (; sessions; sessions = g_list_delete_link(sessions, sessions)) {


More information about the Commits mailing list