mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Fix error handling on Listen functions
This commit is contained in:
parent
08e6ea31de
commit
922248bbf1
2
http.go
2
http.go
|
@ -569,7 +569,7 @@ func (s *ServerList) OpenAll() error {
|
||||||
// we don't care about performance on initialization,
|
// we don't care about performance on initialization,
|
||||||
// we must make sure that the previous servers are running before closing them
|
// we must make sure that the previous servers are running before closing them
|
||||||
s.CloseAll()
|
s.CloseAll()
|
||||||
break
|
return err
|
||||||
}
|
}
|
||||||
if i == l {
|
if i == l {
|
||||||
s.mux.setHostname(s.servers[i].Hostname())
|
s.mux.setHostname(s.servers[i].Hostname())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user