1
0
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:
Lance Stout 2013-10-16 13:13:29 -07:00
parent 55f0ae9511
commit cd3abcf0a7

View File

@ -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);
} }