Avoid waiting 5 seconds before starting
This commit is contained in:
1 parent
83175cdd0a
commit
c28ff33c84
1 file changed
+1
@@ -136,6 +136,7 @@ func (cm *ConnectionMaker) checkStateAndAttemptConnections(now time.Time) {
|
|||||||
cm.addToTargets(address)
|
cm.addToTargets(address)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
now = time.Now() // make sure we catch items just added
|
||||||
for address, target := range cm.targets {
|
for address, target := range cm.targets {
|
||||||
if target.state == CSUnconnected {
|
if target.state == CSUnconnected {
|
||||||
if our_connected_targets[address] || !validTarget[address] {
|
if our_connected_targets[address] || !validTarget[address] {
|
||||||
|
|||||||
Reference in new issue
Block a user