# HG changeset patch # User Mike Ruprecht # Date 1237505180 0 # Node ID c03975d856c93884b4f93d62f20e8d85bcc4c556 # Parent 0083c73e004be1c0dc7d5d8b1ccdfbda3cee7077 Move accepted signal emission to after it's set to accepted. diff -r 0083c73e004b -r c03975d856c9 libpurple/media.c --- 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)) {