Skip to content

Commit

Permalink
no kill
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Sep 26, 2024
1 parent cdc0a7f commit 63a4d4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions electron-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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([
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 63a4d4b

Please sign in to comment.