Skip to content

Commit

Permalink
Merge pull request #1652 from mrpalide/fix/remove-autotransport-in-ping
Browse files Browse the repository at this point in the history
fix `ping` command logic
  • Loading branch information
jdknives authored Aug 6, 2023
2 parents 271625b + 98b94e8 commit e206959
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,16 +328,6 @@ func (r *router) PingRoute(
lPK := r.conf.PubKey
forwardDesc := routing.NewRouteDescriptor(lPK, lPK, lPort, rPort)

r.routeSetupHookMu.Lock()
defer r.routeSetupHookMu.Unlock()
if len(r.routeSetupHooks) != 0 {
for _, rsf := range r.routeSetupHooks {
if err := rsf(rPK, r.tm); err != nil {
return nil, err
}
}
}

// check if transports are available
ok := r.checkIfTransportAvailable()
if !ok {
Expand Down

0 comments on commit e206959

Please sign in to comment.