Give bind its own wait group
In a waitgroup, all waits must come after all adds
This commit is contained in:
parent
5e924e5407
commit
1068d6b92b
3 changed files with 8 additions and 4 deletions
|
|
@ -35,6 +35,8 @@ type Device struct {
|
|||
}
|
||||
|
||||
net struct {
|
||||
starting sync.WaitGroup
|
||||
stopping sync.WaitGroup
|
||||
mutex sync.RWMutex
|
||||
bind Bind // bind interface
|
||||
port uint16 // listening port
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue