act immediately on weave connecting existing addresses

we simply reset the vars controlling backoff for that address
Note that we do not interrupt any current connection attempt, since
that is hard.

Closes #499.
This commit is contained in:
Matthias Radestock committed 2015-03-31 11:05:11 +01:00
1 parent b00be096f7
commit b50688b4de
1 file changed
+3
+3
View File
@@ -48,6 +48,9 @@ func (cm *ConnectionMaker) Start() {
func (cm *ConnectionMaker) InitiateConnection(address string) {
cm.actionChan <- func() bool {
cm.cmdLineAddress[NormalisePeerAddr(address)] = true
if target, found := cm.targets[address]; found {
target.tryAfter, target.tryInterval = tryImmediately()
}
return true
}
}