summaryrefslogtreecommitdiff
path: root/src/connectionParam.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/connectionParam.h')
-rw-r--r--src/connectionParam.h6
1 files changed, 5 insertions, 1 deletions
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;
}
};