Send error message to user
This commit is contained in:
parent
50bcfbf84c
commit
c7dd572625
1 changed files with 6 additions and 0 deletions
|
@ -105,6 +105,12 @@ void User::onConnectingTimeout() {
|
|||
|
||||
void User::handleDisconnected(const std::string &error) {
|
||||
onDisconnected();
|
||||
|
||||
boost::shared_ptr<Swift::Message> msg(new Swift::Message());
|
||||
msg->setBody(error);
|
||||
msg->setTo(m_jid.toBare());
|
||||
m_component->getStanzaChannel()->sendMessage(msg);
|
||||
|
||||
m_userManager->removeUser(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue