changeset 26394:c03975d856c9

Move accepted signal emission to after it's set to accepted.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Thu, 19 Mar 2009 23:26:20 +0000
parents 0083c73e004b
children 96ffb196d18d
files libpurple/media.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/media.c	Thu Mar 19 23:03:43 2009 +0000
+++ b/libpurple/media.c	Thu Mar 19 23:26:20 2009 +0000
@@ -1450,8 +1450,6 @@
 
 	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 @@
 		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)) {