浏览代码

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

Simon Frei 4 年之前
父节点
当前提交
400d62c1e6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/connections/service.go

+ 1 - 0
lib/connections/service.go

@@ -1085,6 +1085,7 @@ func (r nextDialRegistry) redialDevice(device protocol.DeviceID, now time.Time)
 	dev, ok := r[device]
 	dev, ok := r[device]
 	if !ok {
 	if !ok {
 		r[device] = nextDialDevice{
 		r[device] = nextDialDevice{
+			nextDial:              make(map[string]time.Time),
 			coolDownIntervalStart: now,
 			coolDownIntervalStart: now,
 			attempts:              1,
 			attempts:              1,
 		}
 		}