Liffaen
December 11, 2015, 2:03pm
1
Hello,
I just tried to use the matchmaker as described here: http://docs.unity3d.com/Manual/UNetMatchMaker.html
But I had a problem when disconnecting from a party with:
networkMatch.DropConnection(joinResponce.networkId, joinResponce.nodeId, OnConnectionDropped);
The disconnection is effective but when I try to reconnect to the same party, I got this:
ArgumentException: An element with the same key already exists in the dictionary.
System.Collections.Generic.Dictionary2[UnityEngine.Networking.Types.NetworkID,UnityEngine.Networking.Types.NetworkAccessToken].Add (NetworkID key, UnityEngine.Networking.Types.NetworkAccessToken value) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404) UnityEngine.Networking.Utility.SetAccessTokenForNetwork (NetworkID netId, UnityEngine.Networking.Types.NetworkAccessToken accessToken) (at C:/buildslave/unity/build/Runtime/Networking/Managed/UNETTypes.cs:119) HostGame.OnMatchJoined (UnityEngine.Networking.Match.JoinMatchResponse matchJoin) (at Assets/Script/HostGame.cs:118) UnityEngine.Networking.Match.NetworkMatch+<ProcessMatchResponse>c__Iterator0
1[UnityEngine.Networking.Match.JoinMatchResponse].MoveNext () (at C:/buildslave/unity/build/Runtime/Networking/Managed/MatchMakingClient.cs:302)
It seems that token are not flushed client-side. This error end with a timeout disconnection.
Did I forgot something that would have flushed the token?
Thank You
They said they fixed in 5.3.0, but it is not!
Liffaen
December 19, 2015, 12:12pm
3
Problem solved for me with Unity 5.3.1