Permalink
Browse files

fix(P2P): re-create 'dtmfManager'

  • Loading branch information...
paweldomas committed Feb 23, 2017
1 parent f8dc731 commit a33e1971144cf37fbe64c7773488a8902d9d525b
Showing with 2 additions and 1 deletion.
  1. +0 −1 JitsiConference.js
  2. +2 −0 P2PEnabledConference.js
View
@@ -1213,7 +1213,6 @@ JitsiConference.prototype.myUserId = function () {
};
JitsiConference.prototype.sendTones = function (tones, duration, pause) {
// FIXME P2P 'dtmfManager' must be cleared, after switching jingleSessions
if (!this.dtmfManager) {
const peerConnection = this.getActivePeerConnection();
if (!peerConnection) {
View
@@ -348,6 +348,8 @@ export default class P2PEnabledConference extends JitsiConference {
} else {
logger.info("Peer to peer connection closed!");
}
// Clear dtmfManager, so that it can be recreated with new connection
this.dtmfManager = null;
// Update P2P status
this.eventEmitter.emit(
JitsiConferenceEvents.P2P_STATUS, this, this.p2pEstablished);

0 comments on commit a33e197

Please sign in to comment.