Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2022-03-31 21:32:05 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2022-03-31 21:32:05 +0300
commit0167394dd339de30d25a4eda148987d557e6e34f (patch)
tree81c3f52bbb9256bbf44b033e28acbfcff4b3b44c /src/utils/signaling.js
parentd7ac2a1f64fc934e53c930cd8051be2fdfa64a2b (diff)
Fix joining call before leaving first in forced reconnectionsfix-forced-reconnections-when-the-hpb-is-not-used
When the HPB is not used forced reconnections just leave and then join the call again. However, it was not waited for the call to be left first before joining it again, so it could happen that the join request ended being processed first and thus once the leave request was processed the participant did not join again. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r--src/utils/signaling.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js
index a9231d88c..7e00d75a3 100644
--- a/src/utils/signaling.js
+++ b/src/utils/signaling.js
@@ -398,8 +398,9 @@ Signaling.Internal.prototype.forceReconnect = function(newSession, flags) {
// FIXME Naive reconnection routine; as the same session is kept peers
// must be explicitly ended before the reconnection is forced.
- this.leaveCall(this.currentCallToken, true)
- this.joinCall(this.currentCallToken, this.currentCallFlags)
+ this.leaveCall(this.currentCallToken, true).then(() => {
+ this.joinCall(this.currentCallToken, this.currentCallFlags)
+ })
}
Signaling.Internal.prototype._sendMessageWithCallback = function(ev) {