From: Gunnar Beutner Date: Wed, 11 Sep 2013 08:15:59 +0000 (+0200) Subject: cluster: Fix reconnect bug. X-Git-Tag: v0.0.3~562 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63941c5f4008239d520c43fc27e024a4e3133767;p=icinga2 cluster: Fix reconnect bug. --- diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index 9ac47eaf0..041d21805 100644 --- a/components/cluster/clustercomponent.cpp +++ b/components/cluster/clustercomponent.cpp @@ -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); } }