dht: let Dht::inserNode set SearchNode reply time

This commit is contained in:
Simon Désaulniers authored and Adrien Béraud committed 2016-05-02 15:25:15 -04:00
1 parent ba5953bc6b
commit d5f67e97d0
3 files changed
+5 -8

No files matched your search

+2 -1
View File
@@ -140,7 +140,8 @@ NetworkEngine::processMessage(const uint8_t *buf, size_t buflen, const sockaddr
if (msg.error_code == DhtProtocolException::UNAUTHORIZED
&& msg.id != zeroes
&& (msg.tid.matches(TransPrefix::ANNOUNCE_VALUES, &ttid)
|| msg.tid.matches(TransPrefix::LISTEN, &ttid))) {
|| msg.tid.matches(TransPrefix::LISTEN, &ttid)))
{
req->status->last_try = TIME_INVALID;
req->status->reply_time = TIME_INVALID;
onError(req->status, DhtProtocolException {DhtProtocolException::UNAUTHORIZED});