Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
99df7bfe
Commit
99df7bfe
authored
Oct 17, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OS X daemon shutdown
parent
1ca4e7a0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
main.ts
Breeze.UI/main.ts
+7
-6
No files found.
Breeze.UI/main.ts
View file @
99df7bfe
...
@@ -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
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment