Don't generate unnecessary ID's on divert
This commit is contained in:
parent
061ca9ce50
commit
056920e6ab
|
@ -83,12 +83,11 @@ public class DivertImpl implements Divert {
|
||||||
logger.trace("Diverting message " + message + " into " + this);
|
logger.trace("Diverting message " + message + " into " + this);
|
||||||
}
|
}
|
||||||
|
|
||||||
long id = storageManager.generateID();
|
|
||||||
|
|
||||||
ServerMessage copy = null;
|
ServerMessage copy = null;
|
||||||
|
|
||||||
// Shouldn't copy if it's not routed anywhere else
|
// Shouldn't copy if it's not routed anywhere else
|
||||||
if (!forwardAddress.equals(message.getAddress())) {
|
if (!forwardAddress.equals(message.getAddress())) {
|
||||||
|
long id = storageManager.generateID();
|
||||||
copy = message.copy(id);
|
copy = message.copy(id);
|
||||||
|
|
||||||
// This will set the original MessageId, and the original address
|
// This will set the original MessageId, and the original address
|
||||||
|
|
Loading…
Reference in New Issue