fixes #1124 and calls the ready callbacks if the tunnel gets ready and no timeout is set

This commit is contained in:
Veggie Monster 2018-05-28 17:00:47 -04:00
parent 56e76ec59f
commit 46283dc0ea
2 changed files with 14 additions and 12 deletions

View file

@ -67,8 +67,11 @@ namespace client
std::mutex m_HandlersMutex;
std::vector<std::pair<ReadyCallback, uint32_t> > m_ReadyCallbacks;
boost::asio::deadline_timer m_ReadyTimer;
bool m_ReadyTimerTriggered;
uint32_t m_ConnectTimeout;
const size_t NEVER_TIMES_OUT = 0;
public:
bool isUpdated; // transient, used during reload only
};