added some todo text
This commit is contained in:
parent
c7b7bfd25f
commit
7a6b820b92
@ -751,6 +751,11 @@ func (cts *ServerConn) receive_from_stream(wg *sync.WaitGroup) {
|
|||||||
x, ok = pkt.U.(*Packet_Conn)
|
x, ok = pkt.U.(*Packet_Conn)
|
||||||
if ok {
|
if ok {
|
||||||
cts.Token = x.Conn.Token
|
cts.Token = x.Conn.Token
|
||||||
|
// TODO: lock
|
||||||
|
// manipulate the cts_map_by_token
|
||||||
|
// if cts.Token is empty, not placed in the table...
|
||||||
|
// removal by old token value before adding it.
|
||||||
|
// unlock
|
||||||
} else {
|
} else {
|
||||||
cts.S.log.Write(cts.Sid, LOG_ERROR, "Invalid conn_desc event from %s", cts.RemoteAddr)
|
cts.S.log.Write(cts.Sid, LOG_ERROR, "Invalid conn_desc event from %s", cts.RemoteAddr)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user