From 517b776b626b7c4e4750406c97dad0568ca139f0 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 18 Apr 2021 21:38:56 -0400 Subject: [PATCH] don't call (*Config).prepareListeners twice --- irc/config.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/irc/config.go b/irc/config.go index 769aba0b..1e7e8686 100644 --- a/irc/config.go +++ b/irc/config.go @@ -1497,11 +1497,6 @@ func LoadConfig(filename string) (config *Config, err error) { return nil, err } - err = config.prepareListeners() - if err != nil { - return nil, fmt.Errorf("failed to prepare listeners: %v", err) - } - // #1428: Tor listeners should never see STS config.Server.supportedCapsWithoutSTS = caps.NewSet() config.Server.supportedCapsWithoutSTS.Union(config.Server.supportedCaps)