mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-08-14 10:29:49 +00:00
- Fix goroutine leak: statusChan goroutine in Init() never terminated. Replaced separate statusChan+packetChan with unified wsMsgChan that carries both wsStatusMsg and packetMsg as tea.Msg values. - Fix WS goroutine unable to exit on quit: ReadMessage blocked indefinitely. Added 2s read deadline so the done channel is checked periodically. - Add panic recovery in connectWS goroutine. - Fix ring buffer GC leak: old slicing kept backing array alive. Now copies to fresh slice when trimming. - Fix potential panic: ObserverID[:8] on short IDs. Added safePrefix(). - Fix potential panic: ts[:8] on short timestamp strings. - Send graceful WebSocket close frame on quit. - Remove unused sync.Mutex field. - Handle wsStatusMsg as proper tea.Msg type instead of sentinel packet.