teragrep / lsh_01

logstash-http-input to syslog bridge
https://teragrep.com
Apache License 2.0
0 stars 3 forks source link

Fix #67: solved a bug where reconnect time would be waited even for succesful connections #71

Closed 51-code closed 2 months ago

51-code commented 4 months ago

Solves issue #67.

There was a bug introduced in #66 where the Thread.sleep() meant to be called for a failed attempt at connecting would also be called once for a successful attempt.

Moved the sleep function call inside the catch block where the failed connection is handled.