From b3ff5e5365b784794c6426b058599824503dd9f0 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Sun, 23 Jan 2022 08:50:45 +0700 Subject: [PATCH] broadcast remote delay --- src/main/base/win.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/base/win.ts b/src/main/base/win.ts index 0df204c9..3c0e4aad 100644 --- a/src/main/base/win.ts +++ b/src/main/base/win.ts @@ -103,9 +103,6 @@ export class Win { // Register listeners on Window to track size and position of the Window. windowState.manage(this.win); - // Start Remote Discovery - this.broadcastRemote() - return this.win; } @@ -205,6 +202,8 @@ export class Win { remote.set("view engine", "ejs"); getPort({port: 6942}).then((port) => { this.remotePort = port; + // Start Remote Discovery + this.broadcastRemote() remote.listen(this.remotePort, () => { console.log(`Cider remote port: ${this.remotePort}`); if (firstRequest) {