bugfix: when createCall fails to create a leg, it also generated an unhandled exception

This commit is contained in:
Dave Horton
2020-04-15 11:07:52 -04:00
parent 3909ca18a8
commit 55a526e1d4

View File

@@ -80,7 +80,7 @@ router.post('/', async(req, res) => {
if (err) { if (err) {
logger.error(err, 'createCall Error creating call'); logger.error(err, 'createCall Error creating call');
res.status(500).send('Call Failure'); res.status(500).send('Call Failure');
ep.destroy(); return;
} }
/* ok our outbound INVITE is in flight */ /* ok our outbound INVITE is in flight */