mirror of
https://github.com/coder/coder.git
synced 2026-06-07 15:08:20 +00:00
ea4b7d60d7
During agent close it was possible for the startup script logs consumer to enter a deadlock state where by agent close was waiting via `a.trackConnGoroutine` and the log reader for a flush event. This refactor removes the mutex in favor of channel communication and relies on two goroutines without shared state.