diff --git a/electron-app/src/index.ts b/electron-app/src/index.ts index 75263ab..02a7daa 100644 --- a/electron-app/src/index.ts +++ b/electron-app/src/index.ts @@ -4,7 +4,6 @@ import path from 'path'; import semver from 'semver'; import { EVENTS, eventEmitter, initFileSystemServer } from './sync-agent'; -import { killPortProcess } from 'kill-port-process'; let contextMenu: Electron.Menu; let tray = null; @@ -43,7 +42,7 @@ const createWindow = async () => { await checkUpdates(); const icon = nativeImage.createFromPath(path.join(__dirname, '../public/logo_16x16.png')); // kill any previous hanging process - await killPortProcess(8090); + // await killPortProcess(8090); const server = await initFileSystemServer({ basePath }); tray = new Tray(icon); contextMenu = Menu.buildFromTemplate([ @@ -76,13 +75,10 @@ const createWindow = async () => { ]); tray.setToolTip('Nuclia sync'); tray.setContextMenu(contextMenu); - setTimeout(() => { - server.start(); - - dialog.showMessageBoxSync({ - message: 'The Nuclia Sync Agent is running. You can manage your syncs from the online Nuclia Dashboard.', - }); - }, 1000); + // server.start(); + dialog.showMessageBoxSync({ + message: 'The Nuclia Sync Agent is running. You can manage your syncs from the online Nuclia Dashboard.', + }); }; // This method will be called when Electron has finished diff --git a/package.json b/package.json index f29e4ef..53897a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuclia-sync-agent-app", - "version": "1.5.4", + "version": "1.5.5", "description": "This is a Nuclia Sync Agent App", "main": "build/index.js", "scripts": {