Clean up logging channel goroutine

This commit is contained in:
Aadi Desai 2024-05-31 14:57:24 +01:00
parent d28d7e32ee
commit 95f7457e4d
Signed by: supleed2
SSH key fingerprint: SHA256:CkbNRs0yVzXEiUp2zd0PSxsfRUMFF9bLlKXtE1xEbKM

View file

@ -97,6 +97,7 @@ func run(addr string, nickMap map[string]string, admin string, rhlen int, log *l
}
logCh := make(chan logMsg, 128)
defer close(logCh)
go logMessage(db, rooms, logCh, log)
server := &http.Server{