git-watchtower 1.12.6 → 1.12.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.
@@ -3271,6 +3271,18 @@ async function startWebDashboard(openBrowser) {
3271
3271
  render();
3272
3272
  } catch (err) {
3273
3273
  addLog(`Web dashboard failed: ${err.message}`, 'error');
3274
+ // Defensive: if we got far enough to arm the state-push interval,
3275
+ // clear it. The current ordering starts the interval only after
3276
+ // webDashboard.start() resolves, but this keeps cleanup robust
3277
+ // against future reordering and against failures in the
3278
+ // post-bind statements (e.g. openInBrowser, addLog).
3279
+ if (webStateInterval) {
3280
+ clearInterval(webStateInterval);
3281
+ webStateInterval = null;
3282
+ }
3283
+ if (webDashboard) {
3284
+ try { webDashboard.stop(); } catch (_) { /* ignore */ }
3285
+ }
3274
3286
  if (coordinator) {
3275
3287
  try { coordinator.stop(); } catch (_) { /* ignore */ }
3276
3288
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-watchtower",
3
- "version": "1.12.6",
3
+ "version": "1.12.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": {