send message once after creating socket
This commit is contained in:
parent
d0d729a789
commit
01cb146e0d
@ -53,14 +53,12 @@ func (t *tunListener) process() {
|
||||
|
||||
// save the socket
|
||||
conns[m.session] = sock
|
||||
sock.recv <- m
|
||||
|
||||
// send to accept chan
|
||||
select {
|
||||
case <-t.closed:
|
||||
return
|
||||
case t.accept <- sock:
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user