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:
parent
4ef6c58317
commit
5ae6f6b927
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user