cosmetic
This commit is contained in:
1 parent
873c95a602
commit
956707ca86
1 file changed
+3
-3
@@ -247,7 +247,9 @@ func (conn *LocalConnection) handleSetEstablished() error {
|
|||||||
old := conn.established
|
old := conn.established
|
||||||
conn.established = true
|
conn.established = true
|
||||||
conn.Unlock()
|
conn.Unlock()
|
||||||
if !old {
|
if old {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
conn.Router.Ourself.ConnectionEstablished(conn)
|
conn.Router.Ourself.ConnectionEstablished(conn)
|
||||||
if err := conn.ensureForwarders(); err != nil {
|
if err := conn.ensureForwarders(); err != nil {
|
||||||
return err
|
return err
|
||||||
@@ -266,8 +268,6 @@ func (conn *LocalConnection) handleSetEstablished() error {
|
|||||||
nil)
|
nil)
|
||||||
conn.setStackFrag(false)
|
conn.setStackFrag(false)
|
||||||
return conn.handleSendTCP(ProtocolStartFragmentationTestByte)
|
return conn.handleSendTCP(ProtocolStartFragmentationTestByte)
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (conn *LocalConnection) handleSendTCP(msg []byte) error {
|
func (conn *LocalConnection) handleSendTCP(msg []byte) error {
|
||||||
|
|||||||
Reference in new issue
Block a user