Cannot send op: 254! Not connected.

Options
This error happent on the first time i join the room ,, it something like i kicked out from the room ,,,

Cannot send op: 254! Not connected. PeerState: Disconnected
UnityEngine.Debug:LogError(Object)

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @afa,

    Thank you for choosing Photon!

    254 code is for operation Leave.
    So it looks like you are calling PhotonNetwork.LeaveRoom after being disconnected.
    Maybe you are calling it multiple times OR you are calling it after being unexpectedly disconnected due to timeout or something else.