Skip to content

Commit

Permalink
servenv: reset ListeningURL when closing
Browse files Browse the repository at this point in the history
Signed-off-by: deepthi <[email protected]>
  • Loading branch information
deepthi committed Nov 3, 2023
1 parent f8d7f32 commit b731d5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/vt/servenv/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package servenv

import (
"net"
"net/url"
"os"
"os/signal"
"strconv"
Expand Down Expand Up @@ -73,6 +74,7 @@ func Run(bindAddress string, port int) {

log.Info("Shutting down gracefully")
fireOnCloseHooks(onCloseTimeout)
ListeningURL = url.URL{}
}

// OnClose registers f to be run at the end of the app lifecycle.
Expand Down

0 comments on commit b731d5e

Please sign in to comment.