diff libpurple/protocols/jabber/google.c @ 26451:2862fee7acf2

Remove purple_media_hangup.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Mon, 30 Mar 2009 00:45:14 +0000
parents 4e1286e76f1f
children 12c7db418c3e
line wrap: on
line diff
--- a/libpurple/protocols/jabber/google.c	Mon Mar 30 00:30:59 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Mon Mar 30 00:45:14 2009 +0000
@@ -331,7 +331,8 @@
 				session->remote_jid, PURPLE_MEDIA_AUDIO,
 				"nice", num_params, params) == FALSE) {
 		purple_media_error(session->media, "Error adding stream.");
-		purple_media_hangup(session->media);
+		purple_media_stream_info(session->media,
+				PURPLE_MEDIA_INFO_HANGUP, NULL, NULL, TRUE);
 		google_session_destroy(session);
 		g_free(params);
 		return FALSE;
@@ -378,7 +379,8 @@
 	if (purple_media_add_stream(session->media, "google-voice", session->remote_jid, 
 				PURPLE_MEDIA_AUDIO, "nice", num_params, params) == FALSE) {
 		purple_media_error(session->media, "Error adding stream.");
-		purple_media_hangup(session->media);
+		purple_media_stream_info(session->media,
+				PURPLE_MEDIA_INFO_HANGUP, NULL, NULL, TRUE);
 		google_session_send_terminate(session);
 		g_free(params);
 		return;