Search Unity

Question ownerclientid recycling

Discussion in 'Netcode for GameObjects' started by liambilly, Mar 22, 2023.

  1. liambilly

    liambilly

    Joined:
    May 13, 2022
    Posts:
    154
    currenty when i disconnect a client and reconnect everytime the owneerclientid increases and is never recycled.
    i also set
    netConfig.NetworkIdRecycleDelay = 2; on the start method but it did not help
    i have also played around with networkmanager.shutdowninprogress it didnt help, how can i fix this issue
     
  2. liambilly

    liambilly

    Joined:
    May 13, 2022
    Posts:
    154
    coppied the networkmanager.connectedclients dictonary and discovered the problem is that after a client disconnects, the key field is not clearing and the value field doesnt clear after removing the client but is left with a missing reference