Quicker ReflectorLogic reconnect

This commit is contained in:
Tobias Blomberg 2019-10-03 21:18:45 +02:00
parent 89b8a693b9
commit 01ce4a72dd
2 changed files with 2 additions and 1 deletions

View File

@ -445,6 +445,7 @@ void ReflectorLogic::onDisconnected(TcpConnection *con,
cout << name() << ": Disconnected from " << m_con->remoteHost() << ":"
<< m_con->remotePort() << ": "
<< TcpConnection::disconnectReasonStr(reason) << endl;
m_reconnect_timer.setTimeout(1000 + 5000 * std::rand() / RAND_MAX);
m_reconnect_timer.setEnable(true);
delete m_udp_sock;
m_udp_sock = 0;

View File

@ -11,7 +11,7 @@ LIBECHOLIB=1.3.3
LIBASYNC=1.6.0.99.2-reflector_tg
# SvxLink versions
SVXLINK=1.7.99.5-reflector_tg
SVXLINK=1.7.99.6-reflector_tg
MODULE_HELP=1.0.0
MODULE_PARROT=1.1.1
MODULE_ECHO_LINK=1.5.0