Skip to content

Commit

Permalink
Merge pull request #1505 from openziti/fix-ziti-tunnel-shutdown
Browse files Browse the repository at this point in the history
Fix ziti tunnel shutdown. Was deadlocking on shared mutex
  • Loading branch information
plorenz authored Nov 7, 2023
2 parents 5e64063 + 1cd842a commit e526aba
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tunnel/intercept/svcpoll.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -84,9 +84,6 @@ func (self *ServiceListenerGroup) WaitForShutdown() {
break
}

self.Lock()
defer self.Unlock()

for _, listener := range self.listener {
listener.stop()
}
Expand Down

0 comments on commit e526aba

Please sign in to comment.