Skip to content

Commit

Permalink
fix: attempt at fixing broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Nov 14, 2024
1 parent cd22425 commit 22dd42e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/src/Kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Kernel extends AdvancedBase {
// const app = express();
const config = require('./config');

globalThis.ll = () => {};
globalThis.ll = o => o;
globalThis.xtra_log = () => {};
if ( config.env === 'dev' ) {
globalThis.ll = o => {
Expand Down
6 changes: 5 additions & 1 deletion src/backend/src/modules/broadcast/BroadcastService.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ class BroadcastService extends BaseService {
if ( meta.from_outside ) return;

for ( const peer of this.peers_ ) {
peer.send({ key, data, meta });
try {
peer.send({ key, data, meta });
} catch (e) {
//
}
}
}

Expand Down

0 comments on commit 22dd42e

Please sign in to comment.