Merge pull request #1798 from Luis-Fernando-Molina/develop

Contribution: Bug Fixed at Platform Client crashing doing Github Stuff if web app is closed.
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-09-19 17:37:49 -04:00
commit d22287dd0e
1 file changed
+5 -1
+5 -1
View File
@@ -1086,7 +1086,11 @@ exports.newHttpInterface = function newHttpInterface() {
message: err.message,
stack: err.stack
}
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(error), httpResponse)
try {
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(error), httpResponse)
} catch(err) {
// we just try to reponnd to the web app, but maybe the response has already been sent.
}
}
}
}