Experimental reconnect support

This commit is contained in:
Rasmus Karlsson
2018-10-13 15:45:13 +02:00
parent c38bb05bb4
commit 230b2006dc
2 changed files with 32 additions and 0 deletions
+4
View File
@@ -54,6 +54,7 @@ protected:
virtual void onConnected();
virtual void onDisconnected();
virtual void onSocketError();
virtual std::shared_ptr<Channel> getCustomChannel(
const QString &channelName);
@@ -70,6 +71,9 @@ private:
std::unique_ptr<IrcConnection> writeConnection_ = nullptr;
std::unique_ptr<IrcConnection> readConnection_ = nullptr;
QTimer reconnectTimer_;
int falloffCounter_ = 1;
std::mutex connectionMutex_;
// bool autoReconnect_ = false;