diff --git a/xmpp.php b/xmpp.php index c8194a1..9e49674 100644 --- a/xmpp.php +++ b/xmpp.php @@ -114,6 +114,7 @@ class XMPP extends XMLStream { function sasl_failure_handler($xml) { $this->log->log("Auth failed!", LOGGING_ERROR); + $this->disconnect(); } function resource_bind_handler($xml) {