]> granicus.if.org Git - icinga2/commitdiff
cluster: Fix reconnect bug.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 11 Sep 2013 08:15:59 +0000 (10:15 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 11 Sep 2013 08:15:59 +0000 (10:15 +0200)
components/cluster/clustercomponent.cpp

index 9ac47eaf0f648201d8ede777f09292a80d82ae2c..041d21805d7ccd298baaa79a26f8853e85a10f06 100644 (file)
@@ -440,8 +440,9 @@ void ClusterComponent::NewClientHandler(const Socket::Ptr& client, TlsRole role)
                if (oldClient)
                        oldClient->Close();
 
-               ReplayLog(endpoint, tlsStream);
                endpoint->SetClient(tlsStream);
+
+               ReplayLog(endpoint, tlsStream);
        }
 }