drachtio-srf 4.5.17 → 4.5.18
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/srf.js +1 -1
- package/package.json +1 -1
package/lib/srf.js
CHANGED
|
@@ -1028,7 +1028,7 @@ class Srf extends Emitter {
|
|
|
1028
1028
|
return callback(null, {uac, uas}); // successfully connected! resolve promise with both dialogs
|
|
1029
1029
|
} catch (err) {
|
|
1030
1030
|
debug({err}, 'createB2BUA: failed creating UAS..done!');
|
|
1031
|
-
uac.destroy() ; // failed A leg after success on B: tear down B
|
|
1031
|
+
uac && uac.destroy() ; // failed A leg after success on B: tear down B
|
|
1032
1032
|
return callback(err) ;
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|