Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #258: Fixing crash when changing network while opening TTL #267

Merged
merged 1 commit into from
Jun 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Fix: [#250] Silently ignoring waiver on non-working day or non-working day range
- Fix: [#252] Prevent multiple preferences and workday waiver windows to be opened
- Fix: [#255] Avoiding issue when closing preferences window without changing anything
- Fix: [#258] Fixing crash when changing network while opening TTL
- Enhancement: [#228] Improved performance of TTL - Now moving through the calendar is much faster
- Enhancement: [#152] Adding a "Copy" option in the "About message", making it easier to copy information when opening an issue
- Enhancement: [#247] Day View - new minimalist view that shows the calendar day by day
Expand Down
8 changes: 8 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ var launchDate = new Date();
var recommendPunchIn = false;
setTimeout(() => { recommendPunchIn = true; }, 30 * 60 * 1000);

process.on('uncaughtException', function(err) {
if (!err.message.includes('net::ERR_NETWORK_CHANGED')) {
console.error((new Date).toUTCString() + ' uncaughtException:', err.message);
console.error(err.stack);
process.exit(1);
}
});

function checkIdleAndNotify() {
if (recommendPunchIn) {
recommendPunchIn = false;
Expand Down