mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-25 10:42:17 -05:00
Fix excess reason condition wrapping
This commit is contained in:
parent
55f0ae9511
commit
cd3abcf0a7
@ -21,9 +21,7 @@ module.exports = HumanModel.define({
|
|||||||
var reason = reasonForEnding || 'success';
|
var reason = reasonForEnding || 'success';
|
||||||
this.contact.onCall = false;
|
this.contact.onCall = false;
|
||||||
if (this.jingleSession) {
|
if (this.jingleSession) {
|
||||||
this.jingleSession.end({
|
this.jingleSession.end(reasonForEnding);
|
||||||
condition: reason
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
this.collection.remove(this);
|
this.collection.remove(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user