face: rename hasBeenUsedRecently to hasRecentlyReceived
The word "used" is misleading, because the flag is set only when
packets are received, not for any other use of the transport.
Change-Id: I8a940d7887955c47cef085149629591b6e80c2a1
diff --git a/daemon/face/unicast-ethernet-transport.cpp b/daemon/face/unicast-ethernet-transport.cpp
index 05bab28..2ec15f0 100644
--- a/daemon/face/unicast-ethernet-transport.cpp
+++ b/daemon/face/unicast-ethernet-transport.cpp
@@ -88,12 +88,12 @@
UnicastEthernetTransport::scheduleClosureWhenIdle()
{
m_closeIfIdleEvent = scheduler::schedule(m_idleTimeout, [this] {
- if (!hasBeenUsedRecently()) {
+ if (!hasRecentlyReceived()) {
NFD_LOG_FACE_INFO("Closing due to inactivity");
this->close();
}
else {
- resetRecentUsage();
+ resetRecentlyReceived();
scheduleClosureWhenIdle();
}
});