only use cached data if no input is necessary in read command

This commit is contained in:
john30
2016-09-18 12:38:04 +02:00
parent ff0b3636c5
commit 39f0ee13d3
+1 -1
View File
@@ -530,7 +530,7 @@ string MainLoop::executeRead(vector<string> &args)
m_messages->addPollMessage(message);
}
if (dstAddress==SYN && maxAge > 0) {
if (dstAddress == SYN && maxAge > 0 && params.length() == 0) {
Message* cacheMessage = m_messages->find(circuit, args[argPos], false, true);
bool hasCache = cacheMessage != NULL;
if (!hasCache || (message != NULL && message->getLastUpdateTime() > cacheMessage->getLastUpdateTime()))