Fill the creationMonitors based on priority

If not priotity, append to the end of the list.

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
This commit is contained in:
Laszlo Hornyak 2013-10-08 19:14:39 +02:00
parent 8bd1eaa210
commit 6f3688d13d

View File

@ -258,7 +258,7 @@ public class AgentManagerImpl extends ManagerBase implements AgentManager, Handl
_creationMonitors.add(0, new Pair<Integer, StartupCommandProcessor>(
_monitorId, creator));
} else {
_creationMonitors.add(0, new Pair<Integer, StartupCommandProcessor>(
_creationMonitors.add(new Pair<Integer, StartupCommandProcessor>(
_monitorId, creator));
}
}