Introduce two new bool, to know if the xmpp component should try to reconnect
If we never succeeded our connection+auth process, means we should probably not attempt any-more, and just give up. If we ever did, this means a reconnect is a good idea
This commit is contained in:
@@ -140,6 +140,15 @@ public:
|
||||
void handle_iq(const Stanza& stanza);
|
||||
void handle_error(const Stanza& stanza);
|
||||
|
||||
/**
|
||||
* Whether or not we ever succeeded our authentication to the XMPP server
|
||||
*/
|
||||
bool ever_auth;
|
||||
/**
|
||||
* Whether or not the last connection+auth attempt was successful
|
||||
*/
|
||||
bool last_auth;
|
||||
|
||||
private:
|
||||
/**
|
||||
* Return the bridge associated with the given full JID. Create a new one
|
||||
|
||||
Reference in New Issue
Block a user