Disable server startup on running electron

This commit is contained in:
ziajka
2018-04-10 13:09:42 +02:00
parent 0d83972e71
commit 5522322ff1

View File

@ -47,7 +47,6 @@ const createServerProc = () => {
else { else {
serverPath = path.join(__dirname, 'dist', filename, 'gns3server'); serverPath = path.join(__dirname, 'dist', filename, 'gns3server');
} }
} }
}); });
@ -109,8 +108,8 @@ function createWindow () {
// Some APIs can only be used after this event occurs. // Some APIs can only be used after this event occurs.
app.on('ready', createWindow); app.on('ready', createWindow);
app.on('ready', createServerProc); // app.on('ready', createServerProc);
app.on('will-quit', exitServerProc); // app.on('will-quit', exitServerProc);
// Quit when all windows are closed. // Quit when all windows are closed.
app.on('window-all-closed', function () { app.on('window-all-closed', function () {