Merge pull request #69 from stephen-turner/CA-132066

CA-132066 Make Heartbeat work as designed
This commit is contained in:
Stephen Turner 2014-05-15 16:05:03 +01:00
commit 715395b788

View File

@ -172,6 +172,7 @@ namespace XenAdmin.Network
log.DebugFormat("Heartbeat for {0} has failed for the second time; closing the main connection",
session == null ? "null" : session.Url);
connection.Interrupt();
DropSession();
}
else
{
@ -179,7 +180,6 @@ namespace XenAdmin.Network
session == null ? "null" : session.Url);
retrying = true;
}
DropSession();
}
/// Drop the session so that we'll get a new one the next time.