summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-19 17:38:30 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-19 17:38:30 +0100
commit2653fbaa28c9b7b41e03abd4893ea623a6276d21 (patch)
treeeb2cb85f102a3de1437207a6f5b033cd95d80a3c /src/configreader.cpp
parent078abdfc8fecc3b5738d7c6b1943302eeb3939ee (diff)
Don't bind ports after an unsuccessful rehash
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
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;