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.
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.