mirror of
https://github.com/smittix/intercept.git
synced 2026-06-14 08:43:33 -07:00
v2.26.0: fix SSE fanout crash and branded logo FOUC
- Fix SSE fanout thread AttributeError when source queue is None during interpreter shutdown by snapshotting to local variable with null guard - Fix branded "i" logo rendering oversized on first page load (FOUC) by adding inline width/height to SVG elements across 10 templates - Bump version to 2.26.0 in config.py, pyproject.toml, and CHANGELOG.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-4
@@ -507,7 +507,7 @@ def get_current_position() -> GPSPosition | None:
|
||||
# GPS device detection and gpsd auto-start
|
||||
# ============================================
|
||||
|
||||
_gpsd_process: 'subprocess.Popen | None' = None
|
||||
_gpsd_process: subprocess.Popen | None = None
|
||||
_gpsd_process_lock = threading.RLock()
|
||||
|
||||
|
||||
@@ -672,10 +672,8 @@ def stop_gpsd_daemon() -> None:
|
||||
_gpsd_process.terminate()
|
||||
_gpsd_process.wait(timeout=3.0)
|
||||
except Exception:
|
||||
try:
|
||||
with contextlib.suppress(Exception):
|
||||
_gpsd_process.kill()
|
||||
except Exception:
|
||||
pass
|
||||
logger.info("Stopped gpsd daemon")
|
||||
print("[GPS] Stopped gpsd daemon", flush=True)
|
||||
_gpsd_process = None
|
||||
|
||||
Reference in New Issue
Block a user