Commit 69f0cdba authored by afreyssin's avatar afreyssin

Temporary bug fix: Avoids negative values for the stamp counter (JORAM-228).

parent ff9c8b0d
/*
* Copyright (C) 2001 - 2013 ScalAgent Distributed Technologies
* Copyright (C) 2001 - 2015 ScalAgent Distributed Technologies
* Copyright (C) 1996 - 2000 BULL
* Copyright (C) 1996 - 2000 INRIA
*
......@@ -916,6 +916,8 @@ class Engine implements Runnable, AgentEngine, EngineMBean {
msg.source = AgentServer.getServerId();
msg.dest = AgentServer.getServerId();
msg.stamp = ++stamp;
if (stamp == Integer.MAX_VALUE)
stamp = 0;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment