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

This commit is contained in:
Simon Frei 2021-06-17 19:13:57 +02:00 committed by GitHub
parent 857caf3637
commit 400d62c1e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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,
}