Close the tunnel listener when the tunnel is cloed.
This commit is contained in:
@@ -79,6 +79,7 @@ func (s *socket) Recv(m *transport.Message) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Close closes the socket
|
||||
func (s *socket) Close() error {
|
||||
select {
|
||||
case <-s.closed:
|
||||
|
||||
Reference in New Issue
Block a user