-
Notifications
You must be signed in to change notification settings - Fork 974
Fix chance of having a lost window #9912
Conversation
38280c3
to
2ebeca9
Compare
Ready for review pls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
// exit cleanly on signals | ||
['SIGTERM', 'SIGHUP', 'SIGINT', 'SIGBREAK'].forEach((signal) => { | ||
;['SIGTERM', 'SIGHUP', 'SIGINT', 'SIGBREAK'].forEach((signal) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this semi-colon intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think it is. Because we don't use ;
and you have }
in the last line and this line starts with [
, so this could lead into errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep it's a good practice to start lines like that with a semicolon so you don't need to worry about moved code and the preceding line of code.
require('../../app/renderer/reducers/contextMenuReducer'), | ||
// This should be included even in production builds since you can use | ||
// an environment variable to show the Debug menu | ||
require('../../app/renderer/reducers/debugReducer') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
|
||
describe('sessionStore', function () { | ||
describe('sessionStore test', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests are failing for me every time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK just ran them again (3rd or 4th attempt). Worked great 😄 👍
Fix chance of having a lost window
This cherry-picked into 0.19.x without issues... but I had trouble cherry-picking into 0.18.x 😦 @bbondy can you help me resolve the conflict? |
Fix chance of having a lost window
merged to 0.18.x |
Fix #9806
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
npm run unittest -- --grep="sessionStoreShutdown unit tests"
npm run watch-test
npm run test -- --grep="sessionStore test"
Reviewer Checklist:
Tests