vitalyster/SharpXMPP

Connection termination

Closed this issue · 0 comments

  1. Connect to an XMPP server
  2. Shut down the server (Prosody in my case)
  3. The server will properly close the XML stream
  4. But the client won't detect it

The reason is in this line of code:

Prosody closes the XML correctly, thus it will just start returning false in loop instead of trying to read more from the stream and failing.