mirror of
https://github.com/supleed2/go-chat.git
synced 2024-12-22 14:15:49 +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)
|
logCh := make(chan logMsg, 128)
|
||||||
|
defer close(logCh)
|
||||||
go logMessage(db, rooms, logCh, log)
|
go logMessage(db, rooms, logCh, log)
|
||||||
|
|
||||||
server := &http.Server{
|
server := &http.Server{
|
||||||
|
|
Loading…
Reference in a new issue