In reply to post ID 2553
Alex, I pointed that out some time ago. And there is a difference between StatusCode == Forbidden and Response == null: the first is a clear case of "Invalid password", the second just being timeout. So:
- catch (WebException we)
- {
- if (we.Response is HttpWebResponse // this is also false when Response is null
- && ((HttpWebResponse)we.Response).StatusCode == HttpStatusCode.Forbidden)
- {
- base.XmppClientConnection.FireOnAuthError(null);
- }
- base.XmppClientConnection.Close();
- }
nebohodimo IM developer
Koterpillar
Show profile
Link to this post
