This closes #796

This commit is contained in:
Clebert Suconic 2016-09-26 13:35:30 -04:00
commit 147bc33d42
1 changed files with 1 additions and 2 deletions

View File

@ -83,12 +83,11 @@ public class DivertImpl implements Divert {
logger.trace("Diverting message " + message + " into " + this);
}
long id = storageManager.generateID();
ServerMessage copy = null;
// Shouldn't copy if it's not routed anywhere else
if (!forwardAddress.equals(message.getAddress())) {
long id = storageManager.generateID();
copy = message.copy(id);
// This will set the original MessageId, and the original address