@babblevoice/babble-drachtio-callmanager 1.3.1 → 1.3.2

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 CHANGED
@@ -1957,13 +1957,13 @@ class call {
1957
1957
  /* Call outstanding resolves for promises - this will trigger out hangup promise also */
1958
1958
  resolves.forEach( r => r( this ) )
1959
1959
 
1960
- this.removealllisteners()
1961
-
1962
1960
  this._em.emit( "call.destroyed", this )
1963
1961
  callmanager.options.em.emit( "call.destroyed", this )
1964
1962
 
1965
1963
  this._em.emit( "call.reporting", this )
1966
1964
  callmanager.options.em.emit( "call.reporting", this )
1965
+
1966
+ this.removealllisteners()
1967
1967
  }
1968
1968
 
1969
1969
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babblevoice/babble-drachtio-callmanager",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Call processing to create a PBX",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -554,9 +554,9 @@ describe( "call object", function() {
554
554
  eventhappened = true
555
555
  } )
556
556
 
557
- await c.hangup()
558
-
559
557
  expect( eventhappened ).to.be.false
558
+ await c.hangup()
559
+ expect( eventhappened ).to.be.true
560
560
  } )
561
561
 
562
562
  it( `uas.newuac - answered and destroyed event`, async function() {