Fixed server exception (#4696)
Ylian Saint-Hilaire committed
Nov 1, 2022 at 13:15 UTC
aa42b9e7f5e30d7ca4508b905d75fbe5c3ad6240
1 file changed
+1
-1
apprelays.js
+1
-1
@@ -721,7 +721,7 @@ module.exports.CreateWebRelay = function (parent, db, args, domain) {
721
}
722
723
// If there is data, send it
724
- if (data != null) { obj.res.write(data, 'binary'); }
724
+ if (data != null) { try { obj.res.write(data, 'binary'); } catch (ex) { } }
725
726
// If we are done, close the response
727
if (done == true) {