mirror of
https://github.com/openziti/ziti.git
synced 2026-10-09 14:20:54 +00:00
Fix ziti tunnel shutdown. Was deadlocking on shared mutex
This commit is contained in:
@@ -20,12 +20,12 @@ import (
|
||||
"fmt"
|
||||
"github.com/michaelquigley/pfxlog"
|
||||
"github.com/openziti/edge-api/rest_model"
|
||||
"github.com/openziti/foundation/v2/stringz"
|
||||
"github.com/openziti/sdk-golang/ziti"
|
||||
"github.com/openziti/ziti/tunnel"
|
||||
"github.com/openziti/ziti/tunnel/dns"
|
||||
"github.com/openziti/ziti/tunnel/entities"
|
||||
"github.com/openziti/ziti/tunnel/health"
|
||||
"github.com/openziti/foundation/v2/stringz"
|
||||
"github.com/openziti/sdk-golang/ziti"
|
||||
"github.com/pkg/errors"
|
||||
logrus "github.com/sirupsen/logrus"
|
||||
"net"
|
||||
@@ -84,9 +84,6 @@ func (self *ServiceListenerGroup) WaitForShutdown() {
|
||||
break
|
||||
}
|
||||
|
||||
self.Lock()
|
||||
defer self.Unlock()
|
||||
|
||||
for _, listener := range self.listener {
|
||||
listener.stop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user