Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixes #1582: Snap framework panics when using auto_discover_path feat…
Browse files Browse the repository at this point in the history
…ure and REST API is down
  • Loading branch information
rashmigottipati committed Apr 18, 2017
1 parent bb03eab commit 1b7e0ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mgmt/rest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,15 @@ func (s *Server) run(addrString string) {
config := &tls.Config{Certificates: []tls.Certificate{cer}}
ln, err := tls.Listen("tcp", addrString, config)
if err != nil {
s.err <- err
log.Fatal(err)
}
s.serverListener = ln
s.wg.Add(1)
go s.serveTLS(ln)
} else {
ln, err := net.Listen("tcp", addrString)
if err != nil {
s.err <- err
log.Fatal(err)
}
s.serverListener = ln
s.addr = ln.Addr()
Expand Down

0 comments on commit 1b7e0ae

Please sign in to comment.