Commit 99df7bfe authored by dev0tion's avatar dev0tion

Fix OS X daemon shutdown

parent 1ca4e7a0
...@@ -91,10 +91,9 @@ app.on('will-quit', function () { ...@@ -91,10 +91,9 @@ app.on('will-quit', function () {
app.on('window-all-closed', function () { app.on('window-all-closed', function () {
// On OS X it is common for applications and their menu bar // On OS X it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q // to stay active until the user quits explicitly with Cmd + Q
// if (process.platform !== 'darwin') { if (process.platform !== 'darwin') {
// app.quit();
// }
app.quit(); app.quit();
}
}); });
app.on('activate', function () { app.on('activate', function () {
...@@ -106,7 +105,8 @@ app.on('activate', function () { ...@@ -106,7 +105,8 @@ app.on('activate', function () {
}); });
function closeBitcoinApi() { function closeBitcoinApi() {
if (process.platform !== 'darwin' && !serve) { // if (process.platform !== 'darwin' && !serve) {
if (!serve) {
var http1 = require('http'); var http1 = require('http');
const options1 = { const options1 = {
hostname: 'localhost', hostname: 'localhost',
...@@ -122,6 +122,7 @@ function closeBitcoinApi() { ...@@ -122,6 +122,7 @@ function closeBitcoinApi() {
}; };
function closeStratisApi() { function closeStratisApi() {
// if (process.platform !== 'darwin' && !serve) {
if (process.platform !== 'darwin' && !serve) { if (process.platform !== 'darwin' && !serve) {
var http2 = require('http'); var http2 = require('http');
const options2 = { const options2 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment