diff options
Diffstat (limited to 'src/gabble-media-session.c')
-rw-r--r-- | src/gabble-media-session.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gabble-media-session.c b/src/gabble-media-session.c index 5c038cd52..8c1115553 100644 --- a/src/gabble-media-session.c +++ b/src/gabble-media-session.c @@ -657,18 +657,18 @@ gabble_media_session_ready (TpSvcMediaSessionHandler *iface, DBusGMethodInvocation *context) { GabbleMediaSession *self = GABBLE_MEDIA_SESSION (iface); - GabbleMediaSessionPrivate *priv; + GabbleMediaSessionPrivate *priv = GABBLE_MEDIA_SESSION_GET_PRIVATE (self); guint i; - g_assert (GABBLE_IS_MEDIA_SESSION (self)); - - priv = GABBLE_MEDIA_SESSION_GET_PRIVATE (self); + if (priv->ready) + goto out; priv->ready = TRUE; for (i = 0; i < priv->streams->len; i++) _emit_new_stream (self, g_ptr_array_index (priv->streams, i)); +out: tp_svc_media_session_handler_return_from_ready (context); } |