mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 13:29:27 +01:00
fix incorrect propagation of listener errors
This commit is contained in:
parent
4ef6c58317
commit
5ae6f6b927
@ -766,7 +766,7 @@ func (server *Server) setupListeners(config *Config) (err error) {
|
||||
if !exists {
|
||||
// make a new listener
|
||||
newListener, listenerErr := NewListener(server, newAddr, newConfig, config.Server.UnixBindMode)
|
||||
if err != nil {
|
||||
if listenerErr != nil {
|
||||
server.logger.Error("server", "couldn't listen on", newAddr, listenerErr.Error())
|
||||
err = listenerErr
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user