]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Don't bind ports after an unsuccessful rehash
authorAttila Molnar <attilamolnar@hush.com>
Mon, 19 Jan 2015 16:38:30 +0000 (17:38 +0100)
committerAttila Molnar <attilamolnar@hush.com>
Mon, 19 Jan 2015 16:38:30 +0000 (17:38 +0100)
src/configreader.cpp

index bd147782e22aabf494a37df14648652dc99c00a4..b3caf8c7501146e7afdac5d80d0ed42c6f877234 100644 (file)
@@ -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;