From 2653fbaa28c9b7b41e03abd4893ea623a6276d21 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 19 Jan 2015 17:38:30 +0100 Subject: Don't bind ports after an unsuccessful rehash --- src/configreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index bd147782e..b3caf8c75 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -730,7 +730,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) if (valid) ServerInstance->WritePID(this->PID); - if (old) + if (old && valid) { // On first run, ports are bound later on FailedPortList pl; -- cgit v1.2.3