Commit 36d88223 authored by Claes Sjofors's avatar Claes Sjofors

Remote tcpip LinkTimeout bugfix, feqf invertion was lost

parent 9344a78b
...@@ -873,7 +873,7 @@ int main(int argc, char* argv[]) ...@@ -873,7 +873,7 @@ int main(int argc, char* argv[])
time_since_keepalive = 0; time_since_keepalive = 0;
} }
if (time_since_rcv >= rn_tcp->LinkTimeout && feqf(rn_tcp->LinkTimeout, 0.0f)) { if (time_since_rcv >= rn_tcp->LinkTimeout && !feqf(rn_tcp->LinkTimeout, 0.0f)) {
if (rn_tcp->LinkUp) { if (rn_tcp->LinkUp) {
errh_Info("TCP link down %s", rn_tcp->RemoteHostname); errh_Info("TCP link down %s", rn_tcp->RemoteHostname);
rn_tcp->LinkUp = 0; rn_tcp->LinkUp = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment