3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

fix incorrect propagation of listener errors

This commit is contained in:
Shivaram Lingamneni 2020-05-05 06:25:28 -04:00
parent 4ef6c58317
commit 5ae6f6b927

View File

@ -766,7 +766,7 @@ func (server *Server) setupListeners(config *Config) (err error) {
if !exists { if !exists {
// make a new listener // make a new listener
newListener, listenerErr := NewListener(server, newAddr, newConfig, config.Server.UnixBindMode) 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()) server.logger.Error("server", "couldn't listen on", newAddr, listenerErr.Error())
err = listenerErr err = listenerErr
} else { } else {