Reconnected immediately to the XMPP whenever it closes the connection

This commit is contained in:
Florent Le Coz
2014-03-24 20:31:02 +01:00
parent e196d2f1f4
commit ffc820e234
6 changed files with 46 additions and 0 deletions
+5
View File
@@ -167,6 +167,11 @@ void XmppComponent::on_remote_stream_close(const XmlNode& node)
this->doc_open = false;
}
void XmppComponent::reset()
{
this->parser.reset();
}
void XmppComponent::on_stanza(const Stanza& stanza)
{
log_debug("XMPP RECEIVING: " << stanza.to_string());