git-watchtower 2.3.6 → 2.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-watchtower",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "Terminal-based Git branch monitor with activity sparklines and optional dev server with live reload",
5
5
  "main": "bin/git-watchtower.js",
6
6
  "bin": {
@@ -283,6 +283,16 @@ function startSlotReels(renderCallback) {
283
283
  * @param {Object|null} winLevel - The win level object from getWinLevel()
284
284
  */
285
285
  function stopSlotReels(hadUpdates = false, renderCallback = null, winLevel = null) {
286
+ // No-op when casino mode is off. The bin's polling path captures
287
+ // `casinoOn` once at the top of pollGitChanges and continues to use that
288
+ // snapshot for the rest of the cycle, so a poll completing AFTER the
289
+ // user toggled casino off would otherwise install a fresh
290
+ // slotResultInterval that fires render() ~20× over the next 3s. The
291
+ // display getters are already guarded by `casinoEnabled`, so the user
292
+ // sees nothing — but render() still burns full-screen redraws and the
293
+ // interval keeps a closure alive. Drop the call cleanly here instead.
294
+ if (!casinoEnabled) return;
295
+
286
296
  if (slotReelInterval) {
287
297
  clearInterval(slotReelInterval);
288
298
  slotReelInterval = null;