broadcast remote delay

This commit is contained in:
vapormusic 2022-01-23 08:50:45 +07:00
parent 69029cac5f
commit b3ff5e5365

View file

@ -103,9 +103,6 @@ export class Win {
// Register listeners on Window to track size and position of the Window. // Register listeners on Window to track size and position of the Window.
windowState.manage(this.win); windowState.manage(this.win);
// Start Remote Discovery
this.broadcastRemote()
return this.win; return this.win;
} }
@ -205,6 +202,8 @@ export class Win {
remote.set("view engine", "ejs"); remote.set("view engine", "ejs");
getPort({port: 6942}).then((port) => { getPort({port: 6942}).then((port) => {
this.remotePort = port; this.remotePort = port;
// Start Remote Discovery
this.broadcastRemote()
remote.listen(this.remotePort, () => { remote.listen(this.remotePort, () => {
console.log(`Cider remote port: ${this.remotePort}`); console.log(`Cider remote port: ${this.remotePort}`);
if (firstRequest) { if (firstRequest) {