fix send on closed channel for logging; closes #3895

This commit is contained in:
Matthew Penner 2022-01-20 07:00:00 -07:00
parent c27e06bcb9
commit a6b77a31dc

View File

@ -147,7 +147,7 @@ func (h *Handler) listenForServerEvents(ctx context.Context) error {
}
h.server.Events().Off(eventChan, e...)
h.server.InstallSink().Off(logOutput)
h.server.LogSink().Off(logOutput)
h.server.InstallSink().Off(installOutput)
close(eventChan)
close(logOutput)