Skip to content

Commit

Permalink
Fix #258: Fixing crash when changing network while opening TTL (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 committed Jun 19, 2020
1 parent 1bf9624 commit 252cbc7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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: [#241] Changing input format for notification interval and hours per day on preferences
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

0 comments on commit 252cbc7

Please sign in to comment.