drachtio-srf 4.4.63 → 4.4.64
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/dialog.js +2 -2
- package/package.json +1 -1
package/lib/dialog.js
CHANGED
|
@@ -205,7 +205,7 @@ class Dialog extends Emitter {
|
|
|
205
205
|
auth: opts.auth || this.auth,
|
|
206
206
|
_socket: this.socket
|
|
207
207
|
}, (err, bye) => {
|
|
208
|
-
if (err) {
|
|
208
|
+
if (err || !bye) {
|
|
209
209
|
return removeDialog(err, bye, callback);
|
|
210
210
|
}
|
|
211
211
|
|
|
@@ -323,7 +323,7 @@ class Dialog extends Emitter {
|
|
|
323
323
|
stackDialogId: this.id,
|
|
324
324
|
body: this.local.sdp,
|
|
325
325
|
_socket: this.socket,
|
|
326
|
-
headers:
|
|
326
|
+
headers:
|
|
327
327
|
opts.headers ? opts.headers : {'Contact': this.local.contact}
|
|
328
328
|
}, (err, req) => {
|
|
329
329
|
if (err) {
|