lib/connections: Missed map init in nextDialAt (ref #7753) (#7778)

This commit is contained in:
Simon Frei
2021-06-17 21:13:57 +04:00
committed by GitHub
parent 857caf3637
commit 400d62c1e6
+1
View File
@@ -1085,6 +1085,7 @@ func (r nextDialRegistry) redialDevice(device protocol.DeviceID, now time.Time)
dev, ok := r[device]
if !ok {
r[device] = nextDialDevice{
nextDial: make(map[string]time.Time),
coolDownIntervalStart: now,
attempts: 1,
}