refactor
This commit is contained in:
1 parent
8dfdeb3eff
commit
9ecef5e458
1 file changed
+5
-5
@@ -486,14 +486,14 @@ func (conn *LocalConnection) receiveTCP(decoder *gob.Decoder, usingPassword bool
|
|||||||
// request full update
|
// request full update
|
||||||
conn.SendTCP(ProtocolFetchAllByte)
|
conn.SendTCP(ProtocolFetchAllByte)
|
||||||
continue
|
continue
|
||||||
} else if conn.CheckFatal(err) != nil {
|
}
|
||||||
|
if conn.CheckFatal(err) != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if len(newUpdate) == 0 {
|
if len(newUpdate) != 0 {
|
||||||
continue
|
conn.Router.Topology.RebuildRoutes()
|
||||||
|
conn.local.BroadcastTCP(Concat(ProtocolUpdateByte, newUpdate))
|
||||||
}
|
}
|
||||||
conn.Router.Topology.RebuildRoutes()
|
|
||||||
conn.local.BroadcastTCP(Concat(ProtocolUpdateByte, newUpdate))
|
|
||||||
} else if msg[0] == ProtocolPMTUVerified {
|
} else if msg[0] == ProtocolPMTUVerified {
|
||||||
conn.verifyPMTU <- int(binary.BigEndian.Uint16(msg[1:]))
|
conn.verifyPMTU <- int(binary.BigEndian.Uint16(msg[1:]))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user