request peer info token wrong

This commit is contained in:
TenderIronh
2022-06-15 23:20:13 +08:00
parent df23b30d2b
commit 0fb3bc4e26
4 changed files with 5 additions and 4 deletions
+1
View File
@@ -136,6 +136,7 @@ func (pn *P2PNetwork) runAll() {
}
config.nextRetryTime = time.Now().Add(time.Second * time.Duration(increase)) // exponential increase retry time. 1.3^x
config.connectTime = time.Now()
config.peerToken = pn.config.Token
gConf.mtx.Unlock() // AddApp will take a period of time
err := pn.AddApp(*config)
gConf.mtx.Lock()