Skip to content

Commit 31bdd8d

Browse files
author
Oleksandr Shvetsov
committed
SDK version updated to 2.12.8
1 parent fb0fdcf commit 31bdd8d

File tree

8 files changed

+23
-43
lines changed

8 files changed

+23
-43
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
1616
## Dependencies for browser
1717

1818
```html
19-
<script src="https://cdnjs.cloudflare.com/ajax/libs/quickblox/2.12.7/quickblox.min.js"></script>
19+
<script src="https://cdnjs.cloudflare.com/ajax/libs/quickblox/2.12.8/quickblox.min.js"></script>
2020
```
2121
or
2222
```html
23-
<script src="https://unpkg.com/[email protected].7/quickblox.min.js"></script>
23+
<script src="https://unpkg.com/[email protected].8/quickblox.min.js"></script>
2424
```
2525

2626
## Bower and RequireJS

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "2.12.7",
4+
"version": "2.12.8",
55
"homepage": "https://quickblox.com/developers/Javascript",
66
"main": "src/qbMain.js",
77
"license": "(Apache-2.0)",

quickblox.js

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43310,8 +43310,9 @@ RTCPeerConnection.prototype._startWaitingReconnectTimer = function() {
4331043310
};
4331143311

4331243312
Helpers.trace('_startWaitingReconnectTimer, timeout: ' + timeout);
43313-
43314-
self.waitingReconnectTimeoutCallback = setTimeout(waitingReconnectTimeoutCallback, timeout);
43313+
if (!self.waitingReconnectTimeoutCallback) {
43314+
self.waitingReconnectTimeoutCallback = setTimeout(waitingReconnectTimeoutCallback, timeout);
43315+
}
4331543316
};
4331643317

4331743318
RTCPeerConnection.prototype._clearDialingTimer = function(){
@@ -44713,22 +44714,11 @@ WebRTCSession.prototype.processOnStop = function(userID, extension) {
4471344714

4471444715
this._clearAnswerTimer();
4471544716

44716-
/** drop the call if the initiator did it */
44717-
if (userID === self.initiatorID) {
44718-
if (Object.keys(self.peerConnections).length) {
44719-
Object.keys(self.peerConnections).forEach(function(key) {
44720-
self.peerConnections[key].release();
44721-
});
44722-
} else {
44723-
Helpers.traceError("Ignore 'OnStop', there is no information about peer connections by some reason.");
44724-
}
44717+
var pc = self.peerConnections[userID];
44718+
if (pc) {
44719+
pc.release();
4472544720
} else {
44726-
var pc = self.peerConnections[userID];
44727-
if (pc) {
44728-
pc.release();
44729-
} else {
44730-
Helpers.traceError("Ignore 'OnStop', there is no information about peer connection by some reason.");
44731-
}
44721+
Helpers.traceError("Ignore 'OnStop', there is no information about peer connection by some reason.");
4473244722
}
4473344723

4473444724
this._closeSessionIfAllConnectionsClosed();
@@ -45595,8 +45585,8 @@ module.exports = StreamManagement;
4559545585
*/
4559645586

4559745587
var config = {
45598-
version: '2.12.7',
45599-
buildNumber: '1085',
45588+
version: '2.12.8',
45589+
buildNumber: '1086',
4560045590
creds: {
4560145591
appId: '',
4560245592
authKey: '',

quickblox.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/webrtc/qbRTCPeerConnection.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,9 @@ RTCPeerConnection.prototype._startWaitingReconnectTimer = function() {
431431
};
432432

433433
Helpers.trace('_startWaitingReconnectTimer, timeout: ' + timeout);
434-
435-
self.waitingReconnectTimeoutCallback = setTimeout(waitingReconnectTimeoutCallback, timeout);
434+
if (!self.waitingReconnectTimeoutCallback) {
435+
self.waitingReconnectTimeoutCallback = setTimeout(waitingReconnectTimeoutCallback, timeout);
436+
}
436437
};
437438

438439
RTCPeerConnection.prototype._clearDialingTimer = function(){

src/modules/webrtc/qbWebRTCSession.js

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -675,22 +675,11 @@ WebRTCSession.prototype.processOnStop = function(userID, extension) {
675675

676676
this._clearAnswerTimer();
677677

678-
/** drop the call if the initiator did it */
679-
if (userID === self.initiatorID) {
680-
if (Object.keys(self.peerConnections).length) {
681-
Object.keys(self.peerConnections).forEach(function(key) {
682-
self.peerConnections[key].release();
683-
});
684-
} else {
685-
Helpers.traceError("Ignore 'OnStop', there is no information about peer connections by some reason.");
686-
}
678+
var pc = self.peerConnections[userID];
679+
if (pc) {
680+
pc.release();
687681
} else {
688-
var pc = self.peerConnections[userID];
689-
if (pc) {
690-
pc.release();
691-
} else {
692-
Helpers.traceError("Ignore 'OnStop', there is no information about peer connection by some reason.");
693-
}
682+
Helpers.traceError("Ignore 'OnStop', there is no information about peer connection by some reason.");
694683
}
695684

696685
this._closeSessionIfAllConnectionsClosed();

src/qbConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*/
1313

1414
var config = {
15-
version: '2.12.7',
16-
buildNumber: '1085',
15+
version: '2.12.8',
16+
buildNumber: '1086',
1717
creds: {
1818
appId: '',
1919
authKey: '',

0 commit comments

Comments
 (0)