@babblevoice/babble-drachtio-callmanager 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/call.js +2 -4
- package/package.json +1 -1
package/lib/call.js
CHANGED
|
@@ -1978,12 +1978,10 @@ class call {
|
|
|
1978
1978
|
|
|
1979
1979
|
this._sethangupcause( src, reason )
|
|
1980
1980
|
|
|
1981
|
-
let audiochannel = this.channels.audio
|
|
1982
|
-
this.channels.audio = false
|
|
1983
1981
|
/* flag destroyed so when we receive our close event we know what to do */
|
|
1984
1982
|
this.destroyed = true
|
|
1985
|
-
if(
|
|
1986
|
-
|
|
1983
|
+
if( this.channels.audio ) {
|
|
1984
|
+
this.channels.audio.close()
|
|
1987
1985
|
this._timers.cleanup = setTimeout( () => {
|
|
1988
1986
|
console.error( "Timeout waiting for channel close, cleaning up anyway", this.uuid )
|
|
1989
1987
|
this._cleanup()
|