mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
The work group should have different entries if we are listening to the web port or not
This commit is contained in:
parent
1de7e5cd79
commit
9a8f381923
1 changed files with 6 additions and 1 deletions
|
|
@ -1498,7 +1498,12 @@ func (server *Server) Start() (err error) {
|
|||
// for the servers. Each network goroutine defers a call to
|
||||
// netwg.Done(). In the Stop() we close all the connections
|
||||
// and call netwg.Wait() to wait for the goroutines to end.
|
||||
server.netwg.Add(3)
|
||||
numWG := 2
|
||||
if shouldListenWeb {
|
||||
numWG++
|
||||
}
|
||||
|
||||
server.netwg.Add(numWG)
|
||||
go server.udpListenLoop()
|
||||
go server.acceptLoop(server.tlsl)
|
||||
if shouldListenWeb {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue