send message once after creating socket

This commit is contained in:
Asim Aslam 2019-08-11 18:24:16 +01:00
parent d0d729a789
commit 01cb146e0d

View File

@ -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
}
}