Merge remote-tracking branch 'origin/4.11'

This commit is contained in:
Rohit Yadav 2018-10-17 13:25:06 +05:30
commit e871638dc8

View File

@ -303,6 +303,7 @@ public class Agent implements HandlerFactory, IAgentControl {
public void stop(final String reason, final String detail) {
s_logger.info("Stopping the agent: Reason = " + reason + (detail != null ? ": Detail = " + detail : ""));
_reconnectAllowed = false;
if (_connection != null) {
final ShutdownCommand cmd = new ShutdownCommand(reason, detail);
try {