mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-25 08:09:15 +00:00
fix: attempt at fixing broadcast
This commit is contained in:
1 parent
cd22425a3d
commit
22dd42ef7f
2 files changed
+6
-2
No files matched your search
@@ -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 => {
|
||||
|
||||
@@ -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) {
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user