summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2009-04-23 12:04:05 +0000
committerOthmar Gsenger <otti@anytun.org>2009-04-23 12:04:05 +0000
commit81bfc8233f38885c8839aa30c74814ba828670fa (patch)
treeccc50412bd5fa12bd1dd02d4eb676b74ddfff767
parentadded same sync race condition fix (diff)
sync race condition workarround
-rw-r--r--src/connectionParam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connectionParam.h b/src/connectionParam.h
index 80cf2aa..f929211 100644
--- a/src/connectionParam.h
+++ b/src/connectionParam.h
@@ -71,7 +71,7 @@ private:
UDPPacketSource::proto::endpoint endpoint(boost::asio::ip::address::from_string(remote_host), remote_port);
//This is a workarround, against race condition in sync process
//TODO: find a better solution
- if (endpoint != emptyEndpoint || remote_host == "::" || remote_host == "[::]" || remote_host == "0.0.0.0")
+ if (endpoint != emptyEndpoint && remote_host != "::" && remote_host != "[::]" && remote_host != "0.0.0.0")
remote_end_ = endpoint;
}
};