Close the tunnel listener when the tunnel is cloed.

This commit is contained in:
Milos Gajdos
2019-08-08 15:20:53 +01:00
parent c7e8a2aeb9
commit 9eb45dac82
3 changed files with 10 additions and 0 deletions

View File

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