mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-29 12:50:59 +00:00
fix: peers array assumption
This commit is contained in:
@@ -81,7 +81,8 @@ class BroadcastService extends BaseService {
|
||||
}
|
||||
|
||||
async _init () {
|
||||
for ( const peer_config of this.config.peers ) {
|
||||
const peers = this.config.peers ?? [];
|
||||
for ( const peer_config of peers ) {
|
||||
const peer = new Peer(this, peer_config);
|
||||
this.peers_.push(peer);
|
||||
peer.connect();
|
||||
|
||||
Reference in New Issue
Block a user