Skip to content

Commit

Permalink
feat: return back interval timer (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
ten0s authored Jul 16, 2022
1 parent 4ade970 commit 8e34d29
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/overrides/Gtk-3.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ exports.apply = (Gtk) => {
process._tickCallback()

const loopStack = internal.GetLoopStack()

/*
* To keep the nodejs event loop alive, we need to have something running.
*/
if (placeholderIntervalID === undefined) {
placeholderIntervalID = setInterval(() => { /* noop */ }, 60 * 60 * 1000)
}

loopStack.push(originalQuit)

originalMain()
Expand Down

0 comments on commit 8e34d29

Please sign in to comment.