Updated client so it requests logout url if provided

This commit is contained in:
Adolfo Gómez 2012-07-24 23:32:56 +00:00
parent e04239de55
commit 6585d8ff23
2 changed files with 14 additions and 1 deletions

View File

@ -654,7 +654,20 @@ namespace UdsAdmin.forms
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
{
xmlrpc.UdsAdminService.Logout();
string url = xmlrpc.UdsAdminService.Logout();
if (url != "")
{
try
{
System.Net.WebRequest req = System.Net.WebRequest.Create(url);
System.Net.WebResponse response = req.GetResponse();
// We don't mind whatever result we get
response.Close();
}
catch (Exception)
{
}
}
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)