Browse Source

CloseListener() actually closes the listener

pull/73/merge
Jae Kwon 10 years ago
parent
commit
8c3deb402f
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      cmd/barak/barak.go
  2. +1
    -1
      cmd/debora/main.go

+ 4
- 0
cmd/barak/barak.go View File

@ -175,6 +175,10 @@ func (brk *Barak) CloseListener(addr string) {
filtered := []net.Listener{}
for _, listener := range brk.listeners {
if listener.Addr().String() == addr {
err := listener.Close()
if err != nil {
fmt.Printf("Error closing listener: %v\n", err)
}
continue
}
filtered = append(filtered, listener)


+ 1
- 1
cmd/debora/main.go View File

@ -257,7 +257,7 @@ func cliListProcesses(c *cli.Context) {
func cliOpenListener(c *cli.Context) {
args := c.Args()
if len(args) < 1 {
Exit("Must specify <listenAddr e.g. 0.0.0.0:46660>")
Exit("Must specify <listenAddr e.g. [::]:46661>")
}
listenAddr := args[0]
command := btypes.CommandOpenListener{


Loading…
Cancel
Save