From e669110cf4bb2aa781796e36cdb37598f09e04f8 Mon Sep 17 00:00:00 2001
From: jrandom <jrandom>
Date: Wed, 28 Jul 2004 23:34:42 +0000
Subject: [PATCH] be sure to allow for clock skew

---
 .../java/src/net/i2p/router/message/HandleTunnelMessageJob.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/router/java/src/net/i2p/router/message/HandleTunnelMessageJob.java b/router/java/src/net/i2p/router/message/HandleTunnelMessageJob.java
index 8dbe74b79a..4de8c4930b 100644
--- a/router/java/src/net/i2p/router/message/HandleTunnelMessageJob.java
+++ b/router/java/src/net/i2p/router/message/HandleTunnelMessageJob.java
@@ -206,6 +206,8 @@ public class HandleTunnelMessageJob extends JobImpl {
                 msg.setMessageExpiration(_message.getMessageExpiration());
                 
                 int timeoutMs = (int)(_message.getMessageExpiration().getTime() - getContext().clock().now());
+                timeoutMs += Router.CLOCK_FUDGE_FACTOR;
+                
                 if (timeoutMs < 1000) {
                     if (_log.shouldLog(Log.ERROR))
                         _log.error("Message " + _message.getUniqueId() + " is valid and we would pass it on through tunnel "
-- 
GitLab