summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-10 13:08:43 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-10 13:08:43 -0800
commit1b10d3413a13ae3b3a4503e806f96130c4c50fff (patch)
tree5388cb0ce7067b1bc327fe5663966fc0931cff7f
parentf0fcd222a12372de63a2c1b02e6c7304a5332a35 (diff)
downloadinfinitytier-1b10d3413a13ae3b3a4503e806f96130c4c50fff.tar.gz
infinitytier-1b10d3413a13ae3b3a4503e806f96130c4c50fff.zip
Use circuit breaker only for requests.
-rw-r--r--controller/EmbeddedNetworkController.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp
index 0fba8749..85072eef 100644
--- a/controller/EmbeddedNetworkController.cpp
+++ b/controller/EmbeddedNetworkController.cpp
@@ -488,7 +488,7 @@ void EmbeddedNetworkController::request(
const uint64_t now = OSUtils::now();
- {
+ if (requestPacketId) {
Mutex::Lock _l(_lastRequestTime_m);
uint64_t &lrt = _lastRequestTime[std::pair<uint64_t,uint64_t>(identity.address().toInt(),nwid)];
if ((now - lrt) <= ZT_NETCONF_MIN_REQUEST_PERIOD)