|
|
@@ -977,7 +977,7 @@ export default class JingleSessionPC extends JingleSession {
|
|
977
|
977
|
// Do something with reason and reasonCondition when we start to care
|
|
978
|
978
|
// this.reasonCondition = reasonCondition;
|
|
979
|
979
|
// this.reasonText = reasonText;
|
|
980
|
|
- logger.info('Session terminated', this, reasonCondition, reasonText);
|
|
|
980
|
+ logger.info(`Session terminated ${this}`, reasonCondition, reasonText);
|
|
981
|
981
|
|
|
982
|
982
|
this.close();
|
|
983
|
983
|
}
|
|
|
@@ -1813,4 +1813,13 @@ export default class JingleSessionPC extends JingleSession {
|
|
1813
|
1813
|
&& this.peerconnection.connectionState !== 'closed'))
|
|
1814
|
1814
|
&& this.peerconnection.close();
|
|
1815
|
1815
|
}
|
|
|
1816
|
+
|
|
|
1817
|
+ /**
|
|
|
1818
|
+ * Converts to string with minor summary.
|
|
|
1819
|
+ * @return {string}
|
|
|
1820
|
+ */
|
|
|
1821
|
+ toString() {
|
|
|
1822
|
+ return `JingleSessionPC[p2p=${this.isP2P},`
|
|
|
1823
|
+ + `initiator=${this.isInitiator},sid=${this.sid}]`;
|
|
|
1824
|
+ }
|
|
1816
|
1825
|
}
|