From 5b0913e3afe4020c5b76413a2de8be85a0d14c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vale=CC=81rian=20Saliou?= Date: Wed, 23 Jul 2014 14:00:25 +0200 Subject: [PATCH] v0.7.3 release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ValeĢrian Saliou --- CHANGELOG.md | 6 ------ package.json | 2 +- src/jsjac.jingle.single.js | 10 ++++++---- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c802d72..7674d38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,6 @@ JSJaCJingle.js Changelog Here's the log of what has changed over the JSJaCJingle.js releases. -v0.8.0 (Development) --------------------- - - * (...) - - v0.7.3 (Jul 23, 2014) --------------------- diff --git a/package.json b/package.json index cecb6f7..d891769 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jsjac-jingle", "description": "JSJaC Jingle library, implementation of XEP-0166.", - "version": "0.8.0", + "version": "0.7.3", "homepage": "https://github.com/valeriansaliou/jsjac-jingle", "license": "MPL 2.0", diff --git a/src/jsjac.jingle.single.js b/src/jsjac.jingle.single.js index f2881d4..3182599 100644 --- a/src/jsjac.jingle.single.js +++ b/src/jsjac.jingle.single.js @@ -2441,18 +2441,20 @@ var JSJaCJingleSingle = ring.create([__JSJaCJingleBase], */ this.get_peer_connection().oniceconnectionstatechange = function(data) { switch(this.iceConnectionState) { + case JSJAC_JINGLE_ICE_CONNECTION_STATE_CONNECTED: case JSJAC_JINGLE_ICE_CONNECTION_STATE_COMPLETED: - if(_this.get_last_ice_state() !== JSJAC_JINGLE_ICE_CONNECTION_STATE_COMPLETED) { + if(_this.get_last_ice_state() !== JSJAC_JINGLE_ICE_CONNECTION_STATE_CONNECTED) { /* @function */ (_this.get_stream_connected()).bind(this)(_this, data); - _this._set_last_ice_state(JSJAC_JINGLE_ICE_CONNECTION_STATE_COMPLETED); + _this._set_last_ice_state(JSJAC_JINGLE_ICE_CONNECTION_STATE_CONNECTED); } break; + case JSJAC_JINGLE_ICE_CONNECTION_STATE_DISCONNECTED: case JSJAC_JINGLE_ICE_CONNECTION_STATE_CLOSED: - if(_this.get_last_ice_state() !== JSJAC_JINGLE_ICE_CONNECTION_STATE_CLOSED) { + if(_this.get_last_ice_state() !== JSJAC_JINGLE_ICE_CONNECTION_STATE_DISCONNECTED) { /* @function */ (_this.get_stream_disconnected()).bind(this)(_this, data); - _this._set_last_ice_state(JSJAC_JINGLE_ICE_CONNECTION_STATE_CLOSED); + _this._set_last_ice_state(JSJAC_JINGLE_ICE_CONNECTION_STATE_DISCONNECTED); } break; }