From 466c357aeafb7bb0c7ccce23abc2d2c67645cbca Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Tue, 30 Dec 2008 17:39:03 +0000 Subject: sync race condition work-arround (needs better fix!) --- src/connectionParam.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/connectionParam.h b/src/connectionParam.h index 41df91c..c2c21cc 100644 --- a/src/connectionParam.h +++ b/src/connectionParam.h @@ -69,8 +69,12 @@ private: ar & seq_nr_; ar & remote_host; ar & remote_port; + PacketSourceEndpoint emptyEndpoint; UDPPacketSource::proto::endpoint endpoint(boost::asio::ip::address::from_string(remote_host), remote_port); - remote_end_ = endpoint; + //This is a workarround, against race condition in sync process + //TODO: find a better solution + if (endpoint != emptyEndpoint) + remote_end_ = endpoint; } }; -- cgit v1.2.3