mirror of
https://github.com/supleed2/go-chat.git
synced 2024-11-09 19:35:50 +00:00
Clean up logging channel goroutine
This commit is contained in:
parent
d28d7e32ee
commit
95f7457e4d
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue