mirror of
https://github.com/openp2p-cn/openp2p.git
synced 2026-04-26 03:20:24 +08:00
optimize tcp and udp punch
This commit is contained in:
@@ -43,8 +43,7 @@ func update(host string, port int) {
|
||||
return
|
||||
}
|
||||
updateInfo := UpdateInfo{}
|
||||
err = json.Unmarshal(rspBuf, &updateInfo)
|
||||
if err != nil {
|
||||
if err = json.Unmarshal(rspBuf, &updateInfo); err != nil {
|
||||
gLog.Println(LvERROR, rspBuf, " update info decode error:", err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user