From 55a526e1d4799a75b46fa772836b408f95519264 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 15 Apr 2020 11:07:52 -0400 Subject: [PATCH] bugfix: when createCall fails to create a leg, it also generated an unhandled exception --- lib/http-routes/api/create-call.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http-routes/api/create-call.js b/lib/http-routes/api/create-call.js index a27c5ece..8b225f13 100644 --- a/lib/http-routes/api/create-call.js +++ b/lib/http-routes/api/create-call.js @@ -80,7 +80,7 @@ router.post('/', async(req, res) => { if (err) { logger.error(err, 'createCall Error creating call'); res.status(500).send('Call Failure'); - ep.destroy(); + return; } /* ok our outbound INVITE is in flight */