matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Goroutine leak in IDLE watcher on early stop

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug IDLE watcher at fetcher/idle.go:45 closes stop channel but doesn't synchronize goroutine exit. Old watcher may continue running.

To reproduce

  1. Call Watch() repeatedly for same account
  2. Old goroutines closed but not reaped
  3. Goroutine leak, memory grows

Expected behavior Use WaitGroup or context to ensure goroutine exits

Matcha version master

OS All

Additional context File: fetcher/idle.go line 45 Resource leak, grows over time

andrinoff avatar Apr 21 '26 14:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot