Attempt to catch errors with messages being one way

This commit is contained in:
Dragon Fire
2020-02-28 15:28:22 -05:00
parent 98b916aa16
commit d902f57715
+1
View File
@@ -66,6 +66,7 @@ client.on('message', async msg => {
if (origin) await origin.send(origin.recipient, msg);
if (recipient) await recipient.send(recipient.origin, msg);
} catch (err) {
console.log(err);
return; // eslint-disable-line no-useless-return
}
});