Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Dan Ballard | b97196a4ce | |
Sarah Jamie Lewis | ddc52c332f | |
Dan Ballard | 8af406a421 | |
Dan Ballard | fa216a30d7 |
|
@ -172,7 +172,9 @@ func (s *BaseOnionService) Listen(app tapir.Application) error {
|
|||
func (s *BaseOnionService) Shutdown() {
|
||||
s.lock.Lock()
|
||||
defer s.lock.Unlock()
|
||||
if s.ls != nil {
|
||||
s.ls.Close()
|
||||
}
|
||||
s.connections.Range(func(key, value interface{}) bool {
|
||||
connection := value.(tapir.Connection)
|
||||
connection.Close()
|
||||
|
|
Loading…
Reference in New Issue