Subject: Reconnect don't work
I'm developping a Silverlight Client using MatriX but I have issue when trying to implement a reconnect method.
I catch SocketException on send method but when calling Open method nothing happens.
In short the code is :
I have try to create a new client but I get the same issue.
PS : I use Socket connection
I catch SocketException on send method but when calling Open method nothing happens.
In short the code is :
public override void Send(Matrix.Xml.XmppXElement el)
{
try
{
base.Send(el);
}
catch (System.Net.Sockets.SocketException)
{
Close();
//Wait 30s
Open();
}
}
{
try
{
base.Send(el);
}
catch (System.Net.Sockets.SocketException)
{
Close();
//Wait 30s
Open();
}
}
I have try to create a new client but I get the same issue.
PS : I use Socket connection