diff options
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r-- | src/utils/signaling.js | 5 |
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) { |