diff --git a/networks/tor/BaseOnionService.go b/networks/tor/BaseOnionService.go index c408571..7882713 100644 --- a/networks/tor/BaseOnionService.go +++ b/networks/tor/BaseOnionService.go @@ -138,4 +138,9 @@ func (s *BaseOnionService) Listen(app tapir.Application) error { func (s *BaseOnionService) Shutdown() { s.ls.Close() + s.connections.Range(func(key, value interface{}) bool { + connection := value.(*tapir.Connection) + connection.Close() + return false + }) }