Avoid waiting 5 seconds before starting

This commit is contained in:
Bryan Boreham committed 2014-09-10 15:26:13 +01:00
1 parent 83175cdd0a
commit c28ff33c84
1 file changed
+1
+1
View File
@@ -136,6 +136,7 @@ func (cm *ConnectionMaker) checkStateAndAttemptConnections(now time.Time) {
cm.addToTargets(address)
}
now = time.Now() // make sure we catch items just added
for address, target := range cm.targets {
if target.state == CSUnconnected {
if our_connected_targets[address] || !validTarget[address] {