Skip to content
  • jiangyaoguo's avatar
    Fix incorrect channel register · 506e7862
    jiangyaoguo authored
    
    
    Before receiving a hello message from fanin message channel, we can't get
    peerID of fanin message channel. So RegisterChannel always gets
    RegisterChannel(nil, channel). PeerID here is supposed to do something
    like session management (eg. duplicated peer connection check). But at this
    time we can't get peerID. The session management is done by class "Impl"
    with RegisterHandler and DeregisterHandler. Here PeerID is unnecessary, and
    it will always be nil. Incorrect warning of "Received duplicate connection
     from nil, switching to new connection" will be emitted everytime there is
    a new connection.
    
    Change-Id: I9f1bf6287576497acefb46a543fd4ac62d062665
    Signed-off-by: default avatarjiangyaoguo <jiangyaoguo@gmail.com>
    506e7862