Remove the XmppComponent::last_auth bool that was never used anywhere
This commit is contained in:
@@ -39,7 +39,6 @@ static std::set<std::string> kickable_errors{
|
|||||||
XmppComponent::XmppComponent(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& secret):
|
XmppComponent::XmppComponent(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& secret):
|
||||||
TCPSocketHandler(poller),
|
TCPSocketHandler(poller),
|
||||||
ever_auth(false),
|
ever_auth(false),
|
||||||
last_auth(false),
|
|
||||||
served_hostname(hostname),
|
served_hostname(hostname),
|
||||||
secret(secret),
|
secret(secret),
|
||||||
authenticated(false),
|
authenticated(false),
|
||||||
@@ -169,7 +168,6 @@ void XmppComponent::on_remote_stream_open(const XmlNode& node)
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->last_auth = false;
|
|
||||||
// Try to authenticate
|
// Try to authenticate
|
||||||
char digest[HASH_LENGTH * 2 + 1];
|
char digest[HASH_LENGTH * 2 + 1];
|
||||||
sha1nfo sha1;
|
sha1nfo sha1;
|
||||||
@@ -277,7 +275,6 @@ void XmppComponent::handle_handshake(const Stanza& stanza)
|
|||||||
(void)stanza;
|
(void)stanza;
|
||||||
this->authenticated = true;
|
this->authenticated = true;
|
||||||
this->ever_auth = true;
|
this->ever_auth = true;
|
||||||
this->last_auth = true;
|
|
||||||
log_info("Authenticated with the XMPP server");
|
log_info("Authenticated with the XMPP server");
|
||||||
#ifdef SYSTEMDDAEMON_FOUND
|
#ifdef SYSTEMDDAEMON_FOUND
|
||||||
sd_notify(0, "READY=1");
|
sd_notify(0, "READY=1");
|
||||||
|
|||||||
@@ -241,10 +241,6 @@ public:
|
|||||||
* Whether or not we ever succeeded our authentication to the XMPP server
|
* Whether or not we ever succeeded our authentication to the XMPP server
|
||||||
*/
|
*/
|
||||||
bool ever_auth;
|
bool ever_auth;
|
||||||
/**
|
|
||||||
* Whether or not the last connection+auth attempt was successful
|
|
||||||
*/
|
|
||||||
bool last_auth;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user